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.