Interstitial Ads are full screen ads that display over an application’s content. These ads often result in higher eCPM for developers. The best time to use Interstitial Ads is during a natural break in the application flow, such as after completion of a level in a game.
Within interstitial ad placements, developers have the option to display interactive video ads. These units often produce the highest eCPM. To ensure a placement is able to receive these ads, speak to a Verizon Media Account Manager.
Integrating Interstitial Placements
To add an interstitial placement to an app, import the required classes, create an interstitial ad factory, load the ad, and then show the ad once it has finished loading.
The following steps illustrate the process:
1. Import the required classes
Import the following into the Android activity or iOS view controller that will trigger the interstitial ad.
2. Create an interstitial ad factory
An instance of the interstitial ad factory is required to load an ad. The factory is created once, typically when the app’s view controller or activity is initialized.
Interstitial ad factory callbacks
The Interstitial ad factory callbacks communicate events related to ad loading, such as success/failure of an ad load, load/update of the cache. These are implemented as interfaces (Android) or delegates (iOS) and implemented accordingly. Please refer to the API documentation for Android and iOS for a complete list of available callbacks.
3. Load an ad
Prior to displaying an ad, it must be loaded as seen below.
Interstitial ad callbacks
The Interstitial ad callbacks convey changes in the state of the ad. For example, callbacks are provided for ad display, clicks, failure, etc. Please refer to the API documentation for Android and iOS for complete list of available callbacks.
4. Show the ad
After the ad is loaded, it can be shown. Be sure to do so at an appropriate time as interstitial ads take over the entire screen.
For a complete example of implementing an Interstitial Ad within an app, please review the sample application.