Adobe Campaign Standard API reference
Returns the running version of the Campaign Standard extension.
Android
iOS (AEP 3.x)
iOS (ACP 1.x)
React Native
Registers the Campaign Standard extension with the Mobile Core.
Android
iOS (AEP 3.x)
iOS (ACP 1.x)
React Native
This API no longer exists in the AEP 3.x Adobe Campaign Standard extension. Instead, the extension should be registered by calling the
registerExtensions
API in the MobileCore. Please see the updated SDK initialization steps at the migrate to Swift tutorial.When using React Native, register the Adobe Campaign Standard extension with Mobile Core in native code as shown on the Android and iOS tabs.
Clears previously stored linkage fields in the mobile SDK and triggers a Campaign rules download request to the configured Campaign server.
This method unregisters any previously registered rules with the Rules Engine and clears cached rules from the most recent rules download.
Android
iOS (AEP 3.x)
iOS (ACP 1.x)
React Native
Sets the Campaign linkage fields (CRM IDs) in the mobile SDK to be used for downloading personalized messages from Campaign.
The set linkage fields are stored as a base64 encoded JSON string in memory and they are sent in a custom HTTP header
X-InApp-Auth
.Android
iOS (AEP 3.x)
iOS (ACP 1.x)
React Native
Syntax
public static void setLinkageFields(final Map<String, String> linkageFields)
Example
HashMap<String, String> linkageFields = new HashMap<String, String>();
linkageFields.put("cusFirstName", "John");
linkageFields.put("cusLastName", "Doe");
linkageFields.put("cusEmail", "[email protected]");
Campaign.setLinkageFields(linkageFields);
Syntax
static func setLinkageFields(_ linkageFields: [String: String])
Example
Campaign.setLinkageFields(linkageFields: ["cusFirstName": "John", "cusLastName": "Doe", "cusEmail": "[email protected]"])
Syntax
+ (void) setLinkageFields:(NSDictionary<NSString *,NSString *> * _Nonnull)
Example
[AEPMobileCampaign setLinkageFields:@{@"cusFirstName" : @"John", @"cusLastName": @"Doe", @"cusEmail": @"[email protected]"}];
Syntax
+ (void) setLinkageFields: (nonnull NSDictionary<NSString*, NSString*>*) linkageFields
Example
ACPCampaign.setLinkageFields(["cusFirstName": "John", "cusLastName": "Doe", "cusEmail": "[email protected]"])
Syntax
+ (void) setLinkageFields: (NSDictionary<NSString*, NSString*>*) linkageFields
Example
[ACPCampaign setLinkageFields:@{@"cusFirstName" : @"John", @"cusLastName": @"Doe", @"cusEmail": @"[email protected]"}];
Last modified 5mo ago