# InterstitialAd

Interstitial ad component. This is a native component at a higher layer than normal components. Each time the interstitial ad component is created, a new instance (interstitial ad instances on the Mini Program cannot be used across pages) is returned. Interstitial ads are hidden by default, and InterstitialAd.show() must be called to display them.

# Methods

# Promise InterstitialAd.show()

Displays an interstitial ad.

# InterstitialAd.onLoad(function callback)

Listens on the interstitial ad loading event.

# InterstitialAd.offLoad(function callback)

Un-listens on the interstitial ad loading event.

# InterstitialAd.onError(function callback)

Listens on the interstitial ad error event.

# InterstitialAd.offError(function callback)

Un-listens on the interstitial ad error event.

# InterstitialAd.onClose(function callback)

Listens on interstitial ad close event.

# InterstitialAd.offClose(function callback)

Un-listens on the interstitial ad close event.

点击咨询小助手