TPStashEvent.WatchAd
public int WatchAd(
string player_uuid,
string character_uuid,
string ad_slug,
adType ad_type,
adPlacement placed_at,
adStatus ad_status,
[string placed_at_slug = null]
);
Description
WatchAd collects the data of an in-app advertisement. It needs to be called when events like ad exposure, ad play, and ad end occur during the game. It can be used for the analysis of ad-related personas.
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:
|
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 |
||
character_uuid |
Player’s character’s unique lD
|
Required |
||
ad_slug |
Unique identifier of the ad |
Required |
||
ad_type |
Ad type
|
Required |
||
placed_at |
When to expose the advertisement Entities
|
Required |
||
ad_status |
Status of ad exposure
|
Required |
||
placed_at_slug |
Supplemental description about when to expose the advertisement |
Optional |