Adobe Campaign Standard
Before you install or configure the Campaign Standard extension, please read the getting started guide and the configuring a mobile application using Adobe Experience Platform SDKs guide.
If you participated in the Campaign Standard beta, to use the new Campaign Standard extension, go to the Data Collection UI, instead of the Data Collection integration environment.

Configure the Campaign Standard extension in the Data Collection UI

  1. 1.
    In the Data Collection UI, click the Extensions tab.
  2. 2.
    On the Catalog tab, locate the Adobe Campaign Standard extension, and click Install.
  3. 3.
    Provide the extension settings.
  4. 4.
    Click Save.
  5. 5.
    Follow the publishing process to update SDK configuration.

Configure the Campaign Standard extension

Campaign Standard endpoints

Provide endpoint URL(s) for your Campaign Standard instances. You can specify up to three unique endpoints for your development, staging, and production environments. In most cases, the server endpoint is the root URL address, such as companyname.campaign.adobe.com.
For this extension, these endpoint URLs do not contain the http:// or https:// and cannot end with a forward slash.

pKey

A unique, automatically generated identifier for a mobile app that was configured in Adobe Campaign Standard. After you configure this extension in the Data Collection UI, configure your mobile property in Campaign Standard. For more information, please read the tutorial on configuring a mobile application in Adobe Campaign.
After the configuration is successful in Campaign, the pKey is automatically generated and configured in the Campaign extension for a successful validation.

MCIAS region

Select an MCIAS region based on your customer's location or enter a custom endpoint. The SDK retrieves all in-app messaging rules and definition payloads from this endpoint.
For this extension, the custom MCIAS endpoint URL do not contain the http:// or https:// and cannot end with a forward slash.

Request timeout

The request timeout is the time in seconds to wait for a response from the in-app messaging service before timing out. The default timeout value is 5 seconds, and the minimum timeout value is 1 second.
The request timeout value must be a non-zero number.

Add the Campaign Standard extension to your app

Remember the following information when you add the Campaign extension to your app:
Extension
Information
Campaign Standard
The Campaign Standard extension requires the Mobile Core, Profile, Lifecycle, and Signal extensions. You should always ensure that you get the latest version of the extensions.
Profile
The Profile extension is required for in-app trigger frequencies to work accurately. For more information, see Profile.
Signal
The Signal extension is required for all postback rules to work. For more information, see Signal.
Lifecycle
The Lifecycle extension is required for a profile to be registered in Campaign. In order to do this, you will need to implement the Lifecycle APIs. For more information, please read either the Lifecycle API (Android) or the Lifecycle API (iOS) documentation.
The instructions to add these extensions to your mobile app are also available in the Data Collection UI. To access the installation dialog box, open your mobile property, click the Environments tab, and click Install.
Android
iOS
React Native
  1. 1.
    Add the Campaign Standard, Mobile Core and Profile extensions to your project using the app's Gradle file.
    1
    implementation 'com.adobe.marketing.mobile:campaign:1.+'
    2
    implementation 'com.adobe.marketing.mobile:userprofile:1.+'
    3
    implementation 'com.adobe.marketing.mobile:sdk-core:1.+'
    Copied!
  2. 2.
    Import the Campaign Standard, Mobile Core, Profile, Lifecycle, and Signal extensions in your application's main activity.
    1
    import com.adobe.marketing.mobile.AdobeCallback;
    2
    import com.adobe.marketing.mobile.Campaign;
    3
    import com.adobe.marketing.mobile.Identity;
    4
    import com.adobe.marketing.mobile.Lifecycle;
    5
    import com.adobe.marketing.mobile.MobileCore;
    6
    import com.adobe.marketing.mobile.Signal;
    7
    import com.adobe.marketing.mobile.UserProfile;
    Copied!
To complete a manual installation, go to the Adobe Experience Platform SDKs for Android GitHub repo, fetch the Mobile Core, Campaign Standard, Profile, Lifecycle, and Signal artifacts, and complete the steps in the manual installation section.
  1. 1.
    Add the Campaign Standard, Mobile Core and Profile extensions to your project using Cocoapods.
    To complete a manual installation, go to the Adobe Experience Platform SDKs for iOS GitHub repo, fetch the Mobile Core, Campaign Standard, Profile, Lifecycle, and Signal artifacts, and complete the steps in the manual installation section.
  2. 2.
    In Xcode, import the Mobile Core, Campaign Standard, Profile, Lifecycle, and Signal extensions:
    Objective-C
    1
    #import "ACPCore.h"
    2
    #import "ACPCampaign.h"
    3
    #import "ACPUserProfile.h"
    4
    #import "ACPIdentity.h"
    5
    #import "ACPLifecycle.h"
    6
    #import "ACPSignal.h"
    Copied!
    Swift
    1
    import ACPCore
    2
    import ACPCampaign
    3
    import ACPUserProfile
    Copied!
You'll need to install the SDK with npm and configure the native Android/iOS project in your react native project. Before installing the Campaign Standard extension, you'll need to install the Core extension. Follow these steps to get started:
  1. 1.
    Create a React Native project.
1
react-native init MyReactApp
Copied!
  1. 1.
    Install and link the @adobe/react-native-acpcampaign package.
1
npm install @adobe/react-native-acpcampaign
2
react-native link @adobe/react-native-acpcampaign
Copied!
  1. 1.
    Import the extension from @adobe/react-native-acpcampaign.
1
import {ACPCampaign} from '@adobe/react-native-acpcampaign';
Copied!

Register the Campaign Standard extension with Mobile Core

Android
iOS
React Native
Java
In your app's OnCreate method, register the Campaign, Identity, Signal, and Lifecycle extensions:
1
public class CampaignTestApp extends Application {
2
3
@Override
4
public void onCreate() {
5
super.onCreate();
6
MobileCore.setApplication(this);
7
MobileCore.setLogLevel(LoggingMode.DEBUG);
8
9
try {
10
Campaign.registerExtension();
11
UserProfile.registerExtension();
12
Identity.registerExtension();
13
Lifecycle.registerExtension();
14
Signal.registerExtension();
15
MobileCore.start(new AdobeCallback () {
16
@Override
17
public void call(Object o) {
18
MobileCore.configureWithAppID("launch-EN2c0ccd3a457a4c47b65a6b085e269c91-staging");
19
}
20
});
21
} catch (InvalidInitException e) {
22
Log.e("CampaignTestApp", e.getMessage());
23
}
24
25
}
26
}
Copied!
For more information about starting Lifecycle, see the Lifecycle extension in Android guide.
In your app's application:didFinishLaunchingWithOptions: method, register the Campaign, Identity, Signal, and Lifecycle extensions:
Objective-C
1
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
2
[ACPCore setLogLevel:ACPMobileLogLevelDebug];
3
[ACPCore configureWithAppId:@"launch-EN2c0ccd3a457a4c47b65a6b085e269c91-staging"];
4
5
[ACPCampaign registerExtension];
6
[ACPUserProfile registerExtension];
7
[ACPIdentity registerExtension];
8
[ACPLifecycle registerExtension];
9
[ACPSignal registerExtension];
10
[ACPCore start:^{
11
[ACPCore lifecycleStart:nil];
12
}];
13
// Override point for customization after application launch.
14
return YES;
15
}
Copied!
Swift
1
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
2
ACPCore.setLogLevel(.debug)
3
ACPCore.configure(withAppId: "launch-EN2c0ccd3a457a4c47b65a6b085e269c91-staging")
4
5
ACPCampaign.registerExtension()
6
ACPUserProfile.registerExtension()
7
ACPIdentity.registerExtension()
8
ACPLifecycle.registerExtension()
9
ACPSignal.registerExtension()
10
ACPCore.start {
11
ACPCore.lifecycleStart(nil)
12
}
13
14
return true;
15
}
Copied!
For more information about starting Lifecycle, see the Lifecycle extension in iOS guide.
To register the Campaign Standard with Core, use the following API:
JavaScript
1
ACPCampaign.registerExtension();
Copied!

Initialize the SDK and set up tracking

To initialize the SDK and set up tracking, see the initialize the SDK and set up tracking tutorial.
Android
iOS

Set up in-app messaging

To learn how to create an in-app message using Adobe Campaign, see the tutorial on preparing and sending an in-app message.
If you are developing an Android application, to correctly display fullscreen in-app messages, add the Campaign Standard extension's FullscreenMessageActivity to your AndroidManifest.xml file:
1
<activity android:name="com.adobe.marketing.mobile.FullscreenMessageActivity" />
Copied!
In addition to adding the FullscreenMessageActivity, a global lifecycle callback must be defined in your app's MainActivity to ensure the proper display of fullscreen in-app messages. To define the global lifecycle callback, see the implementing global lifecycle callbacks section within the Lifecycle documentation.

Set up local notifications

To set up local notifications in Android, update the AndroidManifest.xml file with <receiver android:name="com.adobe.marketing.mobile.LocalNotificationHandler"/>. To configure the notification icons that the local notification will use, see the configuring notification icons section within the Adobe Analytics - Mobile Services documentation.
No additional setup is needed for iOS in-app messaging and local notifications.

Set up push messaging

To enable push messaging with Adobe Campaign, call setPushIdentifer to send the push identifier that is received from the Apple Push Notification Service (APNS) or Firebase Cloud Messaging Platform (FCM) to the Adobe Identity service. For more information about the setPushIdentifer API, see the setPushIdentifier section of the Adobe Identity API guide.
For more information about setting up your iOS app to connect to APNS and retrieve a device token that will be used as a push identifier, see the tutorial on registering your app with APNs. For more information about setting up your Android app to connect to FCM and retrieve a device registration token that will be used as a push identifier, see the tutorial on setting up a Firebase Cloud Messaging client app on Android.
To learn more about creating a push notification using Adobe Campaign, see the tutorial on preparing and sending a push notification.
Android
iOS
React Native

Java

Example
1
FirebaseInstanceId.getInstance().getInstanceId()
2
.addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
3
@Override
4
public void onComplete(@NonNull Task<InstanceIdResult> task) {
5
if (!task.isSuccessful()) {
6
return;
7
}
8
// Get new Instance ID token
9
String registrationID = task.getResult().getToken();
10
// Log and toast
11
System.out.println("Received new registration token: " + registrationID);
12
// invoke the API to send the push identifier to the Identity Service
13
MobileCore.setPushIdentifier(registrationID);
14
}
15
});
Copied!
iOS simulators do not support push messaging.

Objective-C

Example
1
- (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
2
// Set the deviceToken that the APNS has assigned to the device
3
[ACPCore setPushIdentifier:deviceToken];
4
//...
5
}
Copied!

Swift

Example
1
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
2
// Set the deviceToken that the APNS has assigned to the device
3
ACPCore.setPushIdentifier(deviceToken)
4
//...
5
}
Copied!
Before you use the following API in your React Native project, complete the steps in the Android and iOS tabs to set up platform-specific push configuration.

Example

1
ACPCore.setPushIdentifier("pushID");
Copied!

Tracking local and push notification message interactions

User interactions with local or push notifications can be tracked by invoking the collectMessageInfo API. After the API is invoked, a network request is made to Campaign that contains the message interaction event.
The code samples below are provided as examples on how to correctly invoke the collectMessageInfo API. For more specific details, please read the tutorials on implementing local notification tracking and configuring push tracking within the Adobe Campaign documentation.
Android
iOS

Java

Syntax
1
public static void collectMessageInfo(final Map<String, Object> messageInfo)
Copied!
  • messageInfo is a map that contains the delivery ID, message ID, and action type for a local or push notification for which there were interactions. The delivery and message IDs are extracted from the notification payload.
Example
1
@Override
2
protected void onResume() {
3
super.onResume();
4
handleTracking();
5
}
6
7
// handle notification open and click tracking
8
private void handleTracking() {
9
Intent intent = getIntent();
10
Bundle data = intent.getExtras();
11
HashMap<String, Object> userInfo = null;
12
13
if (data != null) {
14
userInfo = (HashMap)data.get("NOTIFICATION_USER_INFO");
15
} else {
16
return;
17
}
18
19
// Check if we have notification user info.
20
// If it is present, this view was opened based on a notification.
21
if (userInfo != null) {
22
String deliveryId = (String)userInfo.get("deliveryId");
23
String broadlogId = (String)userInfo.get("broadlogId");
24
25
HashMap<String, Object> contextData = new HashMap<>();
26
27
if (deliveryId != null && broadlogId != null) {
28
contextData.put("deliveryId", deliveryId);
29
contextData.put("broadlogId", broadlogId);
30
31
// Send Click Tracking since the user did click on the notification
32
contextData.put("action", "2");
33
MobileCore.collectMessageInfo(contextData);
34
35
// Send Open Tracking since the user opened the app
36
contextData.put("action", "1");
37
MobileCore.collectMessageInfo(contextData);
38
}
39
}
40
}
Copied!

Objective-C

Syntax
1
+ (void) collectMessageInfo: (nonnull NSDictionary*) messageInfo;
Copied!
  • messageInfo is a dictionary that contains the delivery ID, message ID, and action type for a local or push notification for which there were interactions. The delivery and message IDs are extracted from the notification payload.
Example
1
// Handle notification interaction from background or closed
2
-(void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler{
3
dispatch_async(dispatch_get_main_queue(), ^{
4
NSDictionary *userInfo = response.notification.request.content.userInfo;
5
NSString *broadlogId = userInfo[@"_mId"] ?: userInfo[@"broadlogId"];
6
NSString *deliveryId = userInfo[@"_dId"] ?: userInfo[@"deliveryId"];
7
8
if(!broadlogId.length || !deliveryId.length){
9
return;
10
}
11
// Send Click Tracking since the user did click on the notification
12
[ACPCore collectMessageInfo:@{
13
@"broadlogId" : broadlogId,
14
@"deliveryId": deliveryId,
15
@"action": @"2"
16
}];
17
// Send Open Tracking since the user opened the app
18
[ACPCore collectMessageInfo:@{
19
@"broadlogId" : broadlogId,
20
@"deliveryId": deliveryId,
21
@"action": @"1"
22
}];
23
});
24
}
Copied!

Swift

Syntax
1
+ (void) collectMessageInfo: (nonnull NSDictionary*) messageInfo;
Copied!
  • messageInfo is a dictionary that contains the delivery ID, message ID, and action type for a local or push notification for which there were interactions. The delivery and message IDs are extracted from the notification payload.
Example
1
// Handle notification interaction from background or closed
2
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
3
DispatchQueue.main.async(execute: {
4
let userInfo = response.notification.request.content.userInfo
5
var broadlogId:String = (userInfo["_mId"] ?? userInfo["broadlogId"]) as! String
6
var deliveryId:String = (userInfo["_dId"] ?? userInfo["deliveryId"]) as! String
7
8
if (broadlogId.count == 0 || deliveryId.count == 0) {
9
return
10
}
11
// Send Click Tracking since the user did click on the notification
12
ACPCore.collectMessageInfo([
13
"broadlogId": broadlogId,
14
"deliveryId": deliveryId,
15
"action": "2"
16
])
17
// Send Open Tracking since the user opened the app
18
ACPCore.collectMessageInfo([
19
"broadlogId": broadlogId,
20
"deliveryId": deliveryId,
21
"action": "1"
22
])
23
})
24
}
Copied!

Deleting mobile properties in the Data Collection UI

Deleting your property in the Experience Platform Data Connection UI might cause disruption to your recurring push and in-app messaging activities.
In the Data Collection UI, if you delete your mobile property, review your mobile property status in the Campaign Standard extension and ensure that the property displays an updated Deleted in Launch status. For more information about deleting a property, please read the delete a property section within the Data Collection UI documentation.
To remove the corresponding mobile app in Campaign Standard, click Remove from ACS. For more information, see the section on deleting your tags-enabled mobile application.
Deleting your mobile property in the Data Collection UI does not automatically delete your Campaign Standard mobile app.

Handling clickthrough destinations included in Campaign in-app messages

A destination URL can be added to in-app messages that are delivered from Adobe Campaign. The destination can be a website URL such as https://www.adobe.com or a deep link such as campaigndemoapp://signupactivity?paidaccount=true which can be used to direct the user to a specific area of your app.
Android
iOS

Handling in-app message website URLs on Android

Website URL's are handled without any additional action by the app developer. If an in-app message is clicked through and contains a valid URL, the device's default web browser will redirect to the URL contained in the in-app notification payload. The location of the URL differs for each notification type:
  • The url key is present in the alert message payload
  • The url is present in the query parameters of a fullscreen message button (data-destination-url)
  • The adb_deeplink key is present in the local notification payload
  • The uri key is present in the push notification payload
To handle deep links in the notification payload, you need to set up URL schemes in the app. For more information about setting URL schemes for Android, please read the tutorial on creating deep links to app content. Once the desired activity is started by the newly added intent filter, the data present in the deep link can be retrieved. After that point, any further actions based on the data present in the deep link can be made.

Java

1
@Override
2
public void onCreate(Bundle savedInstanceState) {
3
super.onCreate(savedInstanceState);
4
setContentView(R.layout.main);
5
6
Intent intent = getIntent();
7
String action = intent.getAction();
8
Uri data = intent.getData();
9
// parse any data present in the deep link
10
}
Copied!
Android app links were introduced with Android OS 6.0. They are similar to deep links in functionality, although they have the appearance of a standard website URL. The intent filter previously set up for deep links is modified to handle http schemes and verification of the app link needs to be set up on Google Search Console.
For more information on the additional verification setup needed, please read the tutorial on verifying Android app links. The resulting app link can be used to redirect to specific areas of your app if the app is installed or redirect to your app's website if the app isn't installed. For more information on Android app links, please read the guide on handling Android app links.

Handling alert or fullscreen notification website URLs on iOS

Website URL's included in alert or fullscreen messages are handled without any additional action by the app developer. If an alert of fullscreen message is clicked through and contains a valid URL, the Safari browser will be used to load the URL contained in the notification payload. The location of the URL differs for each notification type:
  • The url key is present in the alert message payload
  • The url is present in the query parameters of a fullscreen message button (data-destination-url)
  • The adb_deeplink key is present in the local notification payload
  • The uri key is present in the push notification payload
When a deep link is opened in Safari, this does not allow the app to directly handle the link. To provide a better customer experience, the Experience Platform SDK provides a URL handler that you can use with alert or fullscreen notification deep links.
Objective-C
1
[ACPCore registerURLHandler:^BOOL(NSString * _Nullable url) {
2
NSLog(@"Inside registerURLHandler callback, clickthrough url is: %@", url);
3
if([url containsString:@"campaigndemoapp://"]){
4
// handle the deep link (parse any data present in the deep link and/or redirect to a desired area within the app)
5
return true;
6
}
7
// false is returned when the URL should be opened in Safari
8
return false;
9
}];
Copied!
Swift
1
ACPCore.registerURLHandler({ url in
2
print("Inside registerURLHandler callback, clickthrough url is: (url ?? "")")
3
if url?.contains("campaigndemoapp://") ?? false {
4
// handle the deep link (parse any data present in the deep link and/or redirect to a desired area within the app)
5
return true
6
}
7
// false is returned when the URL should be opened in Safari
8
return false
9
})
Copied!

Handling local notification website URLs on iOS

The website URL in the local notification response can be loaded using the openURL:options:completionHandler: instance method.

Objective-C

1
-(void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler{
2
dispatch_async(dispatch_get_main_queue(), ^{
3
NSDictionary *userInfo = response.notification.request.content.userInfo;
4
NSString *urlString = userInfo[@"adb_deeplink"];
5
if(urlString.length){
6
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString] options:@{} completionHandler:^(BOOL success) {
7
NSLog(@"Open %@: %d",urlString,success);
8
}];
9
}
10
completionHandler();
11
});
12
}
Copied!

Swift

1
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
2
DispatchQueue.main.async(execute: {
3
let userInfo = response.notification.request.content.userInfo
4
let urlString = userInfo["adb_deeplink"] as? String
5
if (urlString?.count ?? 0) != 0 {
6
if let url = URL(string: urlString ?? "") {
7
UIApplication.shared.open(url, options: [:], completionHandler: { success in
8
print("Open (urlString ?? ""): (success)")
9
})
10
}
11
}
12
completionHandler()
13
})
14
}
Copied!

Handling push notification website URLs on iOS

The website URL in the push notification can be loaded using the openURL:options:completionHandler: instance method.

Objective-C

1
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
2
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler {
3
dispatch_async(dispatch_get_main_queue(), ^{
4
NSString *urlString = userInfo[@"uri"];
5
if(urlString.length){
6
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString] options:@{} completionHandler:^(BOOL success) {
7
NSLog(@"Open %@: %d",urlString,success);
8
}];
9
}
10
completionHandler(UIBackgroundFetchResultNoData);
11
});
12
}
Copied!

Swift

1
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
2
DispatchQueue.main.async(execute: {
3
let urlString = userInfo["uri"] as? String
4
if (urlString?.count ?? 0) != 0 {
5
if let url = URL(string: urlString ?? "") {
6
UIApplication.shared.open(url, options: [:], completionHandler: { success in
7
print("Open (urlString ?? ""): (success)")
8
})
9
}
10
}
11
completionHandler(UIBackgroundFetchResultNoData)
12
})
13
}
Copied!
When a local or push notification is clicked through, the didReceiveNotificationResponse instance method is called with the notification response being passed in as a parameter. For more information, see the Apple developer docs at userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:.
The deep link URL can be retrieved from the response object passed into the handler method. An example for retrieving the deep link URL and loading web links is provided below. The retrieved URL can then be parsed to aid with app navigation decision making. For more information about handling deep links and setting URL schemes for iOS, see the tutorial on defining a custom URL scheme for your app.
Objective-C
1
-(void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler{
2
dispatch_async(dispatch_get_main_queue(), ^{
3
NSDictionary *userInfo = response.notification.request.content.userInfo;
4
NSString *urlString = userInfo[@"adb_deeplink"];
5
NSString *urlString2 = userInfo[@"uri"];
6
if(urlString.length){
7
// handle the local notification deep link (parse any data present in the deep link and/or redirect to a desired area within the app)
8
}else if(urlString2.length){
9
// handle the push notification deep link (parse any data present in the deep link and/or redirect to a desired area within the app)
10
}
11
completionHandler();
12
});
13
}
Copied!
Swift
1
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
2
DispatchQueue.main.async(execute: {
3
let userInfo = response.notification.request.content.userInfo
4
let urlString = userInfo["adb_deeplink"] as? String
5
let urlString2 = userInfo["uri"] as? String
6
if (urlString?.count ?? 0) != 0 {
7
// handle the local notification deep link (parse any data present in the deep link and/or redirect to a desired area within the app)
8
} else if (urlString2?.count ?? 0) != 0 {
9
// handle the push notification deep link (parse any data present in the deep link and/or redirect to a desired area within the app)
10
}
11
completionHandler()
12
})
13
}
Copied!
Universal links are available for devices on iOS 9.0 or later. They can be used to redirect to specific areas of your app if the app is installed or redirect to your app's website if the app isn't installed. For more information, see the guide on allowing apps and websites to link to your content.
Universal links are typically used from outside your installed app. For example, a universal link would be used from a link present on a website or a link included in an email message. iOS will not open a universal link if it determines that the link is being opened from within the app it links to. For more information on this limitation, see the "Preparing Your App to Handle Universal Links" section within the documentation on supporting universal links. If a universal link is included as a Campaign clickthrough destination, the link must be handled by the app developer in a similar fashion as a deep link. More information can be seen in the handling alert or fullscreen notification deep links on iOS and handling local or push notification deep links on iOS sections.

Customizing the frequency of registration requests sent to Campaign

The frequency of registration requests sent to Campaign are reduced starting with Campaign Standard Android extension version 1.0.7 and iOS extension version 1.0.6. The default registration delay is seven days since the last successful registration. This registration delay can be configured to provide more flexibility on when to send a registration request.
The configuration setting to pause registration requests is provided for specific use cases only. The use of this configuration setting should be avoided when possible.
Android
iOS

Java

Example
1
MobileCore.updateConfiguration(new HashMap<String, Object>() {
2
{
3
put("campaign.registrationDelay", 30); // number of days to delay sending a registration request.
4
put("campaign.registrationPaused", false); // boolean signaling if registration requests should be paused
5
}
6
});
Copied!

Objective-C

Example
1
NSMutableDictionary *config = [@{} mutableCopy];
2
config[@"campaign.registrationDelay"] = @30; // number of days to delay sending a registration request.
3
config[@"campaign.registrationPaused"] = [NSNumber numberWithBool:NO]; // boolean signaling if registration requests should be paused
4
[ACPCore updateConfiguration:config];
Copied!

Swift

Example
1
var config = [AnyHashable: Any]()
2
config["campaign.registrationDelay"] = 30 // number of days to delay sending a registration request.
3
config["campaign.registrationPaused"] = false // boolean signaling if registration requests should be paused
4
ACPCore.updateConfiguration(config)
Copied!
Giving a value of 0 when setting campaign.registrationDelay will send a registration request on every launch event. This is the previous behavior seen before the registration request reduction enhancement was added.

Configuration keys

To update SDK configuration programmatically, use the following information to change your Campaign Standard configuration values. For more information, see the Configuration API reference.
Key
Required
Description
Data Type
campaign.timeout
Yes
Sets the amount of time to wait for a response from the in-app messaging service.
Integer
campaign.mcias
Yes
Sets the in-app messaging service URL endpoint.
String
campaign.server
Yes
Sets the endpoint URL for the production environment in the Adobe Campaign Standard instance.
String
campaign.pkey
Yes
Sets the identifier for a mobile app that was configured in the production environment in the Adobe Campaign Standard.
String
build.environment
Yes
Specifies which environment to use (prod, dev, or staging) when sending registration information.
String
__dev__campaign.pkey
No
Sets the identifier for a mobile app that was configured in the development environment in Adobe Campaign Standard.
String
__dev__campaign.server
No
Sets the endpoint URL for the development environment in the Adobe Campaign Standard instance.
String
__stage__campaign.pkey
No
Sets the identifier for a mobile app that was configured in the staging environment in Adobe Campaign Standard.
String
__stage__campaign.server
No
Sets the endpoint URL for the staging environment in the Adobe Campaign Standard instance.
String
campaign.registrationDelay
No
Sets the number of days to delay the sending of the next Adobe Campaign Standard registration request.
Integer
campaign.registrationPaused
No
Sets the Adobe Campaign Standard registration request paused status.
Boolean
Last modified 3mo ago