setAudienceID(IDAudiencia)
![]() |
IDAudiencia: matriz de objetos NameValuePair que definen el IDAudiencia.
|
NameValuePair custId = new NameValuePairImpl();
custId.setName("IDCliente");
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);
. . .
/** Crear matriz de comandos */
Command[] commands =
{
startSessionCommand,
setAudienceCommand,
};
/** Realizar la llamada */
BatchResponse batchResponse = api.executeBatch(sessionId, commands);
/** Procesar la respuesta de la forma adecuada */
processExecuteBatchResponse(batchResponse);
Copyright IBM Corporation 2013. All Rights Reserved.
|