title: Taro.createInterstitialAd(option)

sidebar_label: createInterstitialAd

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

  1. (option: Option) => InterstitialAd

Parameters

Option

Property Type Description
adUnitId string Ad unit ID

API Support

API WeChat Mini-Program H5 React Native
Taro.createInterstitialAd ✔️