Skip to content

InterstitialAd.destroy ​

Destroy the interstitial ad instance. Once the ad component is destroyed, it can no longer be used; to display it again, create a new ad instance.

When leaving the corresponding game scene, remove the registered listeners and destroy the instance. Destroy it even if the ad is still loading — a late load callback must not trigger a display after the instance is destroyed.

Example ​

javascript
interstitialAd.destroy();