Set Campaign Variable (Tracking Code) in Android Mobile App

Objective

Set Campaign Variable (Tracking Code) in Android Mobile App.

Environment

Adobe Mobile Services
Android

Steps

To set the campaign variable, set a context data key to "&&campaign", and set the value by using the syntax that is defined for the campaign variable:

cdata.put("&&campaign", "App Campaign");

For Example:

//create a context data dictionary
HashMap cdata = new HashMap<String, Object>();

// Note the special syntax for Campaign
cdata.put("&&campaign", "App Campaign");

// print the output
System.out.println("Campaign value");

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online