Edit in GitHubLog an issue

Adobe Campaign Standard API reference

extensionVersion

Returns the running version of the Campaign Standard extension.

Java

Syntax

Copied to your clipboard
public String extensionVersion()

Example

Copied to your clipboard
String campaignExtensionVersion = Campaign.extensionVersion();

Kotlin

Syntax

Copied to your clipboard
public String extensionVersion()

Example

Copied to your clipboard
val campaignExtensionVersion: String = Campaign.extensionVersion()

registerExtension

Registers the Campaign Standard extension with the Mobile Core.

This API has been deprecated as of version 2.0.0. Please use the Mobile Core registerExtension API instead.

resetLinkageFields

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.

Java

Syntax

Copied to your clipboard
public static void resetLinkageFields()

Example

Copied to your clipboard
Campaign.resetLinkageFields()

Kotlin

Syntax

Copied to your clipboard
public static void resetLinkageFields()

Example

Copied to your clipboard
Campaign.resetLinkageFields()

setLinkageFields

Sets the Campaign linkage fields (CRM IDs) in 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.

Java

Syntax

Copied to your clipboard
public static void setLinkageFields(final Map<String, String> linkageFields)

Example

Copied to your clipboard
HashMap<String, String> linkageFields = new HashMap<String, String>();
linkageFields.put("cusFirstName", "John");
linkageFields.put("cusLastName", "Doe");
linkageFields.put("cusEmail", "john.doe@email.com");
Campaign.setLinkageFields(linkageFields);

Kotlin

Syntax

Copied to your clipboard
public static void setLinkageFields(final Map<String, String> linkageFields)

Example

Copied to your clipboard
val linkageFields: Map<String, String?> = mapOf(
"cusFirstName" to "John",
"cusLastName" to "Doe",
"cusEmail" to "john.doe@email.com"
)
Campaign.setLinkageFields(linkageFields)
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.