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 () => {
await admob.start()
interstitial = new admob.InterstitialAd({
adUnitId: 'ca-app-pub-xxx/yyy',
})
await interstitial.load()
await interstitial.show()
}, false)
document.addEventListener('admob.interstitial.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()
})