TikTok for Developers

Developer Docs

Last updated October 5, 2026

In-App Ads

Create and activate the matching ad unit in the developer platform before creating, loading, and showing the ad object.

TT.CreateRewardedVideoAd(param)

Creates a rewarded video ad object.

Signature

public static TTRewardedVideoAd CreateRewardedVideoAd(
    CreateRewardedVideoAdParam param)

Parameters

Field

Type

Description

AdUnitId

string

An activated rewarded video ad unit ID.

Return value

A TTRewardedVideoAd object.

TTRewardedVideoAd.Load()

Signature

public void Load()

Starts loading the ad.

TTRewardedVideoAd.Show()

Signature

public void Show()

Shows a loaded ad.

TTRewardedVideoAd.IsLoaded()

Signature

public bool IsLoaded()

Returns whether the ad is loaded.

TTRewardedVideoAd.OnLoad

Signature

public event AdLoadDelegate OnLoad // void callback()

TTRewardedVideoAd.OnError

Signature

public event AdErrorDelegate OnError // void callback(int code, string message)

TTRewardedVideoAd.OnClose

Signature

public event RewardedAdClosedDelegate OnClose // void callback(bool isEnded)

TTRewardedVideoAd.Destroy()

Signature

public void Destroy()

Example

var rewardedAd = TT.CreateRewardedVideoAd(new CreateRewardedVideoAdParam
{
    AdUnitId = "your_rewarded_ad_unit_id"
});

rewardedAd.OnLoad += () => rewardedAd.Show();
rewardedAd.OnError += (code, message) =>
    Debug.LogError($"Rewarded ad error: {code}, {message}");
rewardedAd.OnClose += isEnded =>
{
    if (isEnded) GrantReward();
    rewardedAd.Destroy();
};
rewardedAd.Load();

Grant the reward only when OnClose returns isEnded == true.

TT.CreateInterstitialAd(param)

Creates an interstitial ad object.

Signature

public static TTInterstitialAd CreateInterstitialAd(
    CreateInterstitialAdParam param)

Parameters

Field

Type

Description

InterstitialAdId

string

An activated interstitial ad unit ID.

Return value

A TTInterstitialAd object.

TTInterstitialAd.Load()

Signature

public void Load()

TTInterstitialAd.Show()

Signature

public void Show()

TTInterstitialAd.IsLoaded()

Signature

public bool IsLoaded()

TTInterstitialAd.OnLoad

Signature

public event AdLoadDelegate OnLoad // void callback()

TTInterstitialAd.OnError

Signature

public event AdErrorDelegate OnError // void callback(int code, string message)

TTInterstitialAd.OnClose

Signature

public event AdCloseDelegate OnClose // void callback()

TTInterstitialAd.Destroy()

Signature

public void Destroy()

Example

var interstitialAd = TT.CreateInterstitialAd(new CreateInterstitialAdParam
{
    InterstitialAdId = "your_interstitial_ad_unit_id"
});

interstitialAd.OnLoad += () => interstitialAd.Show();
interstitialAd.OnError += (code, message) =>
    Debug.LogError($"Interstitial ad error: {code}, {message}");
interstitialAd.OnClose += () => interstitialAd.Destroy();
interstitialAd.Load();
TikTok for Developers