Taro.createInterstitialAd(option)
Creates an interstitial ad component. Before using this API, use the object's SDKVersion returned by Taro.getSystemInfoSync()
to determine the base library version number. A new instance is returned each time an interstitial ad is created by calling this method (interstitial ad instances in Mini Programs cannot be used across pages).
Type
(option: Option) => InterstitialAd
Parameters
Option
Property | Type | Description |
---|---|---|
adUnitId | string | Ad unit ID |
API Support
API | WeChat Mini-Program | H5 | React Native |
---|---|---|---|
Taro.createInterstitialAd | ✔️ |