Skip to main content
Version: Next

Interstitial Ad

Interstitial ads are full-screen ads that cover the interface of their host app. They're typically displayed at natural transition points in the flow of an app, such as between activities or during the pause between levels in a game. When an app shows an interstitial ad, the user has the choice to either tap on the ad and continue to its destination or close it and return to the app.

Usage

let interstitial

document.addEventListener('deviceready', async () => {
interstitial = new admob.InterstitialAd({
adUnitId: 'ca-app-pub-xxx/yyy',
})

interstitial.on('load', (evt) => {
// evt.ad
})

await interstitial.load()
await interstitial.show()
}, false)

document.addEventListener('admob.ad.dismiss', async () => {
// Once a interstitial ad is shown, it cannot be shown again.
// Starts loading the next interstitial ad as soon as it is dismissed.
await interstitial.load()
})

Events

load

loadfail

show

showfail

dismiss

impression