setAudienceLevel
setAudienceLevel(audienceLevel)
The setAudienceLevel method defines the Audience Level for the setAudience and startSession commands.
*
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.
Return value
None.
Example
The following example is an excerpt from an executeBatch method calling startSession and 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);