setAudienceLevel
setAudienceLevel(audienceLevel)
La méthode setAudienceLevel définit le Référentiel pour les commandes setAudience et startSession.
*
audienceLevel — Chaîne définissant le Référentiel.
*
Le nom de audienceLevel doit correspondre exactement au référentiel défini dans Campaign. Ce nom est sensible à la casse.
Valeur de retour
Aucune.
Exemple
L'exemple suivant est un extrait d'une méthode executeBatch appelant startSession et setAudience.
String audienceLevel="Customer";
. . .
Command startSessionCommand = new CommandImpl();
startSessionCommand.setAudienceID(initialAudienceId);
. . .
Command setAudienceCommand = new CommandImpl();
setAudienceCommand.setAudienceLevel(audienceLevel);
. . .
/** Build command array */
Command[] commands =
{
startSessionCommand,
setAudienceCommand,
};
/** Make the call */
BatchResponse batchResponse = api.executeBatch(sessionId, commands);

/** Process the response appropriately */
processExecuteBatchResponse(batchResponse);