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
Campaign.extensionVersion();

registerExtension

Registers the Campaign Standard extension with the Mobile Core.

Java

Syntax

Copied to your clipboard
public static void registerExtension()

Example

Copied to your clipboard
Campaign.registerExtension();

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()

setLinkageFields

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.

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);
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.