TPStashEvent.StashOfferEvent

public int StashOfferEvent(
    string player_uuid,
    int offer_id,
    messageStatus message_status,
    [string message_detail = null]
);

Description

StashOfferEvent collects the events about the actions that a user takes to interact with an offer message delivered in in-game mails and pop-ups such as opening and closing its window and other button actions.

It returns 1 for success and -1 for failure. If -1 is returned, you can see the following message in the Unity editor console in TentuPlay debug mode:

TPError||ERROR inserting table_name: exception_error_message

Parameters

Name Description Required

player_uuid

Player’s unique ID (not a character’s ID) such as Steam user ID and Google Play user ID

Required

offer_id

Unique ID assigned to the offer

Required

message_status

User action on an offer message such as showing, closing its window and other button actions

public enum messageStatus {
    Impress,
    Open,
    Dismiss,
    Interact
}
  • Impress: The player received the offer successfully

  • Open: The player opened the offer

  • Dismiss: The player clicked the close button on the offer UI

  • Interact: The player took the next step on the offer by clicking an associated button such as Purchase

Required

message_detail

Unique ID of in-game contents related to an advertisement in an offer (for example, advertised in-game item, DLC product, and in-game gift card)

Optional