getScore

The getScore method returns a score, which is based on the offers you configured.

getScore()

The getScore method returns one of the following:

  • If you did 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 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 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 that represents 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());
}