setAudience(String
sessionID, NameValuePairImpl[]
audienceID, String
audienceLevel, NameValuePairImpl[]
parameters)The setAudience method enables you to set the audience ID and level for a visitor.
sessionID—a string identifying the session ID.
audienceID—an array of NameValuePairImpl objects that defines the audience ID.
audienceLevel—a string that defines the audience level.
parameters—NameValuePairImpl objects identifying any parameters that need to be passed with setAudience. These values are stored in the session data and can be used for segmentation.You must have a value for every for every column in your profile. This is a superset of all columns in all the tables defined for the interactive channel and any real-time data. If you have already populated all the session data with startSession or postEvent, you do not need to send new parameters.The setAudience method triggers a re-segmentation. The getOffers method waits for re-segmentation to finish before running. Therefore, if you call a setAudience method immediately before a getOffers call, there may be a delay.
The setAudience method also loads the profile data for the audience ID. You can use the setAudience method to force a reload of the same profile data loaded by the startSession method.
The runtime server responds to setAudience with a Response object with the following attributes populated:
sessionId and audienceLevel are the same strings to identify the session and audience level used by the startSession call which started this session.
IBM Unica Interact
8.5.0
|
Copyright IBM Corporation 2011. All Rights Reserved.
|
For more information, see our support and community site: Customer Central
|
|