Skip to main content
Version: 3.x

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).

Reference

Type

(option: Option) => InterstitialAd

Parameters

Option

PropertyTypeDescription
adUnitIdstringAd unit ID

API Support

APIWeChat Mini-ProgramH5React Native
Taro.createInterstitialAd✔️