setAudienceID
setAudienceID(
audienceID
)
setAudienceID
メソッドは、
setAudience
コマンドおよび
startSession
コマンドの AudienceID を定義します。
audienceID
— AudienceID を定義する NameValuePair オブジェクトの配列。
戻り値
ありません。
例
以下の例は、
startSession
および
setAudience
を呼び出す
executeBatch
メソッドからの抜粋です。
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);
Copyright IBM Corporation 2012. All Rights Reserved.