97 lines
3.2 KiB
Swift
97 lines
3.2 KiB
Swift
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
@testable import FBAEMKit
|
|
import Foundation
|
|
|
|
final class SampleAEMInvocations { // swiftlint:disable:this convenience_type
|
|
static func createGeneralInvocation1() -> AEMInvocation {
|
|
AEMInvocation(
|
|
campaignID: "test_campaign_1",
|
|
acsToken: "test_token_1234567",
|
|
acsSharedSecret: "test_shared_secret",
|
|
acsConfigurationID: "test_config_id_123",
|
|
businessID: nil,
|
|
catalogID: nil,
|
|
isTestMode: false,
|
|
hasStoreKitAdNetwork: false,
|
|
isConversionFilteringEligible: true
|
|
)! // swiftlint:disable:this force_unwrapping
|
|
}
|
|
|
|
static func createGeneralInvocation2() -> AEMInvocation {
|
|
AEMInvocation(
|
|
campaignID: "test_campaign_2",
|
|
acsToken: "test_token_1234567",
|
|
acsSharedSecret: "test_shared_secret",
|
|
acsConfigurationID: "test_config_id_123",
|
|
businessID: nil,
|
|
catalogID: nil,
|
|
isTestMode: false,
|
|
hasStoreKitAdNetwork: false,
|
|
isConversionFilteringEligible: true
|
|
)! // swiftlint:disable:this force_unwrapping
|
|
}
|
|
|
|
static func createDebuggingInvocation() -> AEMInvocation {
|
|
AEMInvocation(
|
|
campaignID: "debugging_campaign",
|
|
acsToken: "debugging_token",
|
|
acsSharedSecret: "debugging_shared_secret",
|
|
acsConfigurationID: "debugging_config_id_123",
|
|
businessID: nil,
|
|
catalogID: nil,
|
|
isTestMode: true,
|
|
hasStoreKitAdNetwork: false,
|
|
isConversionFilteringEligible: true
|
|
)! // swiftlint:disable:this force_unwrapping
|
|
}
|
|
|
|
static func createSKANOverlappedInvocation() -> AEMInvocation {
|
|
AEMInvocation(
|
|
campaignID: "debugging_campaign",
|
|
acsToken: "debugging_token",
|
|
acsSharedSecret: "debugging_shared_secret",
|
|
acsConfigurationID: "debugging_config_id_123",
|
|
businessID: nil,
|
|
catalogID: nil,
|
|
isTestMode: false,
|
|
hasStoreKitAdNetwork: true,
|
|
isConversionFilteringEligible: true
|
|
)! // swiftlint:disable:this force_unwrapping
|
|
}
|
|
|
|
static func createCatalogOptimizedInvocation() -> AEMInvocation {
|
|
AEMInvocation(
|
|
campaignID: "81", // The campaign id mod 8 (catalog optimization modulus) modulus is 1
|
|
acsToken: "debugging_token",
|
|
acsSharedSecret: "debugging_shared_secret",
|
|
acsConfigurationID: "debugging_config_id_123",
|
|
businessID: nil,
|
|
catalogID: "test_catalog_id",
|
|
isTestMode: false,
|
|
hasStoreKitAdNetwork: true,
|
|
isConversionFilteringEligible: true
|
|
)! // swiftlint:disable:this force_unwrapping
|
|
}
|
|
|
|
static func createInvocationWithBusinessID() -> AEMInvocation {
|
|
AEMInvocation(
|
|
campaignID: "81", // The campaign id mod 8 (catalog optimization modulus) modulus is 1
|
|
acsToken: "debugging_token",
|
|
acsSharedSecret: "debugging_shared_secret",
|
|
acsConfigurationID: "debugging_config_id_123",
|
|
businessID: "test_business_id",
|
|
catalogID: "test_catalog_id",
|
|
isTestMode: false,
|
|
hasStoreKitAdNetwork: true,
|
|
isConversionFilteringEligible: true
|
|
)! // swiftlint:disable:this force_unwrapping
|
|
}
|
|
}
|