TPStashEvent.StashAdviceEvent

public int StashAdviceEvent(
    string player_uuid,
    int advice_id,
    adviceStatus advice_status,
    [string advice_detail=null]
);

Description

StashAdviceEvent collects the events about the actions that a user takes to interact with an advice 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

advice_id

Unique ID assigned to the advice

Required

advice_status

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

public enum adviceStatus {
    Open,
    Dismiss,
    Interact
}
  • Open: The player opened the advice

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

  • Interact: The player took the next step on the advice by clicking an associated button

Required

advice_detail

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

Optional