getScore
getScore()
The
getScore
method returns one of the following:
If you have not enabled the default offers table, score override table, or built-in learning, this method returns the marketing score of the offer as defined on the interaction strategy tab.
If you have enabled the default offers or score override table and not enabled built-in learning, this method returns the score of the offer as defined by the order of precedence between the default offers table, the marketer's score, and the score override table.
If you have enabled built-in learning, this method returns the final score that the built-in learning used to order offers.
Return value
The
getScore
method returns an integer representing the score of the offer.
Example
The following example prints the score of an offer.
for(Offer offer : offerList.getRecommendedOffers())
{
// print offer
System.out.println("Offer Score:"+offer.getOfferScore());
}
Copyright IBM Corporation 2013. All Rights Reserved.