Skip to content

Android Interstitial Advanced Usage

Aleksandr Chatsky edited this page Jan 4, 2019 · 2 revisions

If you are looking for a usage that gives you more control about the performance optimization, you can use methods below:

N.B: If you want to use advanced usage, do NOT enable auto-loading for that format.

1. Load the interstitial

Load the ad by calling:

AMInterstitial.load(activity);

2. Check if interstitial is loaded

You can check the ad availability by calling:

if (AMInterstitial.isReady()) {
    // interstitial is ready
} else {
    // interstitial is NOT ready
}

3. Display the interstitial

You can display the interstitial by calling:

AMInterstitial.show(activity);
Clone this wiki locally