Advertisement

If you wish to show ads, call the related methods listed below.

Interstitial Ads

If you wish to show an interstitial ad, call the WatchAd method as below.

In the case of interstitial ads, Set the ad_type of the WatchAd method as adType.Interstitial. WatchAd method’s placed_at is for recording when the ad will be placed. WatchAd method’s ad_status is for recording the status of the ad or the if the ad has been watched. For additional information, please refer to TPStashEvent.WatchAd.

WatchAdd

Show Ad (After Cool Down)

Start Ad Watch

player_uuid

{ player_uuid }

{ player_uuid }

character_uuid

TentuPlayKeyword.DUMMY_CHARACTER_ID

TentuPlayKeyword.DUMMY_CHARACTER_ID

ad_slug

{ Ad ID }

{ Ad ID }

ad_type

adType.Interstitial

adType.Interstitial

placed_at

entity:StageStart

entity:StageStart

ad_status

adStatus.Ready

adStatus.Start

placed_at_slug

{ Play }

{ Play }

placed_at_slug

{ Play }

{ Play }

Finished Watching Ad

Quit Out of Ad

player_uuid

{ player_uuid }

{ player_uuid }

character_uuid

TentuPlayKeyword.DUMMY_CHARACTER_ID

TentuPlayKeyword.DUMMY_CHARACTER_ID

ad_slug

{ AdID }

{ AdID }

ad_type

adType.Interstitial

adType.Interstitial

placed_at

entity:StageStart

entity:StageStart

ad_status

adStatus.End

adStatus.Quit

placed_at_slug

{ Play }

{ Play }

placed_at_slug

{ Play }

{ Play }

Rewarded Ads

If you are showing a rewarded ad, call the needed WatchAd, GetBonus, GetCurrency, etc methods.

  • In the case of a rewarded ad, set the ad_type of the WatchAd method as adType.Reward and call WatchAd.

    WatchAd

    Show Ad (After Cool Down)

    Start Ad Watch

    player_uuid

    { player_uuid }

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    ad_slug

    { Ad ID }

    { Ad ID }

    ad_type

    adType.Reward

    adType.Reward

    placed_at

    entity:StageStart

    entity:StageStart

    ad_status

    adStatus.Ready

    adStatus.Start

    placed_at_slug

    { Play }

    { Play }

    placed_at_slug

    { Play }

    { Play }

    Finished Watching Ad

    Quit Out of Ad

    player_uuid

    { player_uuid }

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    ad_slug

    { Ad ID }

    { Ad ID }

    ad_type

    adType.Reward

    adType.Reward

    placed_at

    entity:StageStart

    entity:StageStart

    ad_status

    adStatus.End

    adStatus.Quit

    placed_at_slug

    { Play }

    { Play }

    placed_at_slug

    { Play }

    { Play }

  • If a user is rewarded currency, as this is not gotten through in-game play, call the GetBonus method.

    GetBonus

    player_uuid

    { player_uuid }

    character_uuid

    TentuPlayKeyword.DUMMY_CHARACTER_ID

    bonus_slug

    { Free Gold Ad }

    bonus_category_slug

    { Free Gold Ad }

    is_automated

    FALSE

  • If the reward for watching the ad is currency, call the GetCurrency method as detailed below.

    If the ad watch reward is not currency but another Object(ex. Token, Material), call the Get{Object type} Method.

    GetCurrency

    player_uuid

    { player_uuid }

    character_uuid

    TentuPlayKeyword.*DUMMY_CHARACTER_ID*

    currency_slug

    GOLD

    currency_quantity

    30

    currency_total_quantity

    215

    from_entity

    entity.Bonuses

    from_category_slug

    { Free Gold Ad }

    from_slug

    { Free Gold Ad }