getTreatmentCode
getTreatmentCode()
The getTreatmentCode method returns the treatment code of the offer as defined in Campaign.
Because Campaign uses the treatment code to identify the instance of the offer served, this code must be returned as an event parameter when using the postEvent method to log a contact, acceptance, or rejection event of the offer. If you are logging an offer acceptance or rejection, you must set the name value of the NameValuePair representing the treatment code to UACIOfferTrackingCode.
Return value
The getTreatmentCode method returns a string.
Example
The following example prints the treatment code of an offer.
for(Offer offer : offerList.getRecommendedOffers())
{
// print offer
System.out.println("Offer Treatment Code:"+offer.getTreatmentCode());
}