setAudienceID
setAudienceID(audienceID)
La méthode setAudienceID définit AudienceID pour les commandes setAudience et startSession.
*
audienceID — Tableau d'objets NameValuePair qui définissent AudienceID.
Valeur de retour
Aucune.
Exemple
L'exemple suivant est un extrait d'une méthode executeBatch appelant startSession et setAudience.
NameValuePair custId = new NameValuePairImpl();
custId.setName("CustomerId");
custId.setValueAsNumeric(1.0);
custId.setValueDataType(NameValuePair.DATA_TYPE_NUMERIC);
NameValuePair[] initialAudienceId = { custId };
. . .
Command startSessionCommand = new CommandImpl();
startSessionCommand.setAudienceID(initialAudienceId);
. . .
Command setAudienceCommand = new CommandImpl();
setAudienceCommand.setAudienceID(newAudienceId);
. . .
/** Build command array */
Command[] commands =
{
startSessionCommand,
setAudienceCommand,
};
/** Make the call */
BatchResponse batchResponse = api.executeBatch(sessionId, commands);

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