setAudienceLevel(audienceLevel)
![]() |
audienceLevel-a string containing the Audience Level.
|
![]() |
The name of the audienceLevel must match the name of the audience level as defined in Campaign exactly. It is case-sensitive.
|
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);
Copyright IBM Corporation 2014. All Rights Reserved.
|