Advertisement
Call the following methods if you want to show ads in your game,
Interstitial ads
To show an interstitial ad, call WatchAd.
| Put  | 
| 
 | 
| Method | Parameter | Type | Required | Notes | |
|---|---|---|---|---|---|
| 1. Show ad | 2. Start ad watch | ||||
| player_uuid | string | Required | |||
| character_uuid | string | Required | 
 | ||
| ad_slug | string | Required | Ad ID | ||
| ad_type | Required | 
 | |||
| placed_at | Required | 
 | |||
| ad_status | Required | 
 | 
 | ||
| placed_at_slug | string | Optional | 
 | ||
| Method | Parameter | Type | Required | Notes | |
|---|---|---|---|---|---|
| 3. Finished watching ad | 4. Quit out of ad | ||||
| player_uuid | string | Required | |||
| character_uuid | string | Required | 
 | ||
| ad_slug | string | Required | Ad ID | ||
| ad_type | Required | 
 | |||
| placed_at | Required | 
 | |||
| ad_status | Required | 
 | 
 | ||
| placed_at_slug | string | Optional | 
 | ||
Rewarded ads
To show a rewarded ad, call the following methods.
- 
Call the WatchAdmethods by ad view stages.Put adType.Rewardin thead_typeparameter.Method Parameter Type Required Notes 1. Show ad 
 (After cool down)2. Start ad watch player_uuid string Required character_uuid string Required TentuPlayKeyword._DUMMY_CHARACTER_ID_ad_slug string Required Ad ID ad_type Required adType.Rewardplaced_at Required entity:StageStartad_status Required adStatus.ReadyadStatus.Startplaced_at_slug string Optional PlayMethod Parameter Type Required Notes 3. Finished watching ad 4. Quit out of ad player_uuid string Required character_uuid string Required TentuPlayKeyword._DUMMY_CHARACTER_ID_ad_slug string Required Ad ID ad_type Required adType.Rewardplaced_at Required entity:StageStartad_status Required adStatus.EndadStatus.Quitplaced_at_slug string Optional Play
- 
If a user is rewarded for ad view, call GetBonusbecause it is not acquired through in-game play.Method Parameter Type Required Notes player_uuid string Required character_uuid string Required TentuPlayKeyword._DUMMY_CHARACTER_ID_bonus_slug string Required Free Gold Adbonus_category_slug string Required Free Gold Adis_automated boolean Optional FALSE
- 
Depending on the reward type, call the corresponding methods - 
If the reward for ad view is a currency, call GetCurrency.
- 
If the reward is not a currency but another object like Token or Material, call the Get{ Object }method (for example,GetToken,GetMaterial).
 
- 
| Method | Parameter | Type | Required | Notes | 
|---|---|---|---|---|
| player_uuid | string | Required | ||
| character_uuid | string | Required | 
 | |
| currency_slug | string | Required | 
 | |
| currency_quantity | float | Required | 
 | |
| currency_total_quantity | float | Optional | 
 | |
| from_entity | Optional | 
 | ||
| from_category_slug | string | Optional | 
 | |
| from_slug | string | Optional | 
 |