Skip to content

Unity Interstitial Usage

Mert Celik edited this page Jan 4, 2019 · 2 revisions

Please refer to InterstitialSampleScript.cs in our Unity plugin for complete implementation.

1. Get the interstitial instance

You should keep a reference to interstitial instance by calling;

private AMInterstitial interstitial = AMInterstitial.Instance;

2. Load the interstitial

Load the interstitial by calling:

interstitial.LoadAd();

3. Check if interstitial is loaded

You can check the ad availability by calling:

if(interstitial.IsLoaded() == true) {
  // interstitial is ready
} else {
  // interstitial is NOT ready
}

4. Display the interstitial

You can display the interstitial by calling:

interstitial.Show();

Clone this wiki locally