Interstitial ads are full-screen or full-page ads that temporarily cover an app’s interface. They’re typically shown at natural pauses or transition points—such as after completing a level in a game or when navigating between major views.
The following sections show you how to load and then show an interstitial ad.
To load an interstitial ad, first instantiate a MaxInterstitialAd object corresponding to your ad unit.
Then call that object’s loadAd() method.
Implement MaxAdListener so that you are notified when your ad is ready (you are also notified of other ad-related events).
To show an interstitial ad, call showAd( this ) on the MaxInterstitialAd object that you created.
The AppLovin MAX SDK provides APIs with which you can display interstitial ads in the lock screen. Use cases for this integration include audio apps, which typically appear on the lock screen.
When you load an interstitial ad to display on the lock screen, you need to set an extra parameter for the MaxInterstitialAd, and the Activity you pass in must implement the LifecycleOwner interface.
To show the lock screen interstitial ad, call showAd(…) with the ViewGroup in the ad.
The networks that support this feature are Axon’s Ads Manager and AppLovin Exchange.
To add support into a custom adapter or one of AppLovin’s open source adapters, override the following showInterstitialAd(…) method.
Best practices: Displaying interstitial ads