TPPersonalizedOffer

What is TPPersonalizedOffer

TPPersonalizedOffer is an API class to show TentuPlay personalized offers and AI in-game shop offers in TentuPlay.CRM.

Methods

The TPPersonalizedOffer class contains the following methods:

Name Description

GetOfferAsync

Retrieves an offer content asynchronously and saves it to the client’s database

SelectOfferInfo

Retrieves information about the valid offers currently available within the client’s database by descending order of creation date

ShowOfferById

Shows offers on screen by offer_id

ShowLastestOffer

Shows the most recent offer

OfferOpened

A method to be called when an offer is opened

This is a default method of both TentuPlayAIOffer.cs and TentuPlayManualOffer.cs.

MarkDoNotShowAgain

A method to be called when the Do Not Show Again checkbox is selected

The default text is Do Not Show Again Today in both TentuPlayAIOffer.cs and TentuPlayManualOffer.cs. If you want to use Do Not Show Again, edit the text in the two script files.

MarkDoNotShowToday

A method to be called when the Do Not Show Again Today checkbox is selected.

  • When called, SelectOfferInfo, ShowOfferById, ShowLatestOffer will not be shown to the player even if they are called during that day.

  • This is a default method of both TentuPlayAIOffer.cs and TentuPlayManualOffer.cs.

UnmarkDoNotShowToday

A method to be called when the Do Not Show Again Today checkbox is cleared.

This is a default method of both TentuPlayAIOffer.cs and TentuPlayManualOffer.cs.

GetRecommendedProduct

Retrieves the csv information of a recommended product in an offer.

  • The method is used for the AI in-game shop only

  • This is a default method of TentuPlayAIOffer.cs.

SetProduct

Configures the sprite and price of a recommended product in an offer.

  • The method is used for the AI in-game shop only

  • This is a default method of TentuPlayAIOffer.cs.