Skip to content

InterstitialAd.show ​

Show the interstitial ad.

Return Value ​

Promise<void>

The Promise only reports the result of this show call; it does not mean the ad was actually displayed. Display failures are reported through onError, and closing through onClose.

Do not queue a show request when the ad is not ready — it is not held back and displayed later; continue the game flow instead. Each interstitial ad instance is shown only once. Clean up the instance after it closes or fails, and create a new one when the next ad is needed.

Example ​

javascript
interstitialAd.show()
    .then(() => {
        console.log('Interstitial ad show call issued; waiting for onClose or onError');
    })
    .catch((err) => {
        console.error('Interstitial ad show call failed', err);
    })
    .finally(() => {
        console.log('Interstitial ad show call finished');
    });