setAudienceID
setAudienceID(
IDAudiencia
)
El método
setAudienceID
define el IDAudiencia para los comandos
setAudience
y
startSession
.
IDAudiencia
: matriz de objetos NameValuePair que definen el IDAudiencia.
Valor de retorno
Ninguno.
Ejemplo
El ejemplo siguiente es un fragmento de un método
executeBatch
que llama a
startSession
y
setAudience
.
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 2012. All Rights Reserved.