To return the current version of the ACPCampaign extension, use the following APIs:
{% tabs %} {% tab title="Android" %}
Campaign.getExtensionVersion();
{% endtab %}
{% tab title="iOS" %}
+ (nonnull NSString*) extensionVersion;
NSLog([ACPCore extensionVersion]);
class func extensionVersion() -> String {}
print(ACPCore.extensionVersion());
{% endtab %}
{% tab title="React Native" %}
ACPCampaign.extensionVersion().then(version => console.log("AdobeExperienceSDK: ACPCampaign version: " + version));
{% endtab %} {% endtabs %}
Allows Campaign to connect fields from separate databases and create a more developed and personalized messaging experience. Profile template-based messages that contain PII-based personalization are downloaded. The linkage fields are stored as a base64-encoded JSON string in memory and sent in a custom HTTP header, X-InApp-Auth
, in all future Campaign rules download requests until ACPCampaign::resetLinkageFields
is invoked. The linkage fields are cleared when the app is gracefully closed, crashed, or the privacy status is changed to opt out. For more information, see Preparing and sending an In-App message.
{% tabs %} {% tab title="Android" %}
public void setLinkageFields(final Map<String, String> linkageFields)
HashMap<String, String> linkageFields = new HashMap<String, String>();
linkageFields.put("cusFirstName", "John");
linkageFields.put("cusLastName", "Doe");
linkageFields.put("cusEmail", "[email protected]");
Campaign.setLinkageFields(linkageFields);
{% endtab %}
{% tab title="iOS" %}
+ (void) setLinkageFields: (nonnull NSDictionary<NSString*, NSString*>*) linkageFields;
[ACPCampaign setLinkageFields:@{@"cusFirstName" : @"John", @"cusLastName": @"Doe", @"cusEmail": @"[email protected]"}];
var linkageFields = [String: String]()
linkageFields["cusFirstName"] = "John"
linkageFields["cusLastName"] = "Doe"
linkageFields["cusEmail"] = "[email protected]"
ACPCampaign.setLinkageFields(linkageFields)
{% endtab %}
{% tab title="React Native" %}
ACPCampaign.setLinkageFields({"linkageKey": "linkageValue"});
{% endtab %} {% endtabs %}
Removes the previously stored linkage fields in the SDK and triggers the Campaign rules download again. Personalized messages stored in cache before are erased.
{% tabs %} {% tab title="Android" %}
public void resetLinkageFields()
Campaign.resetLinkageFields()
{% endtab %}
{% tab title="iOS" %}
+ (void) resetLinkageFields;
[ACPCampaign resetLinkageFields];
ACPCampaign.resetLinkageFields();
{% endtab %}
{% tab title="React Native" %}
ACPCampaign.resetLinkageFields();
{% endtab %} {% endtabs %}