We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[微信小程序]
let interstitialAd = null Page({ onLoad() { if(wx.createInterstitialAd){ //1.创建广告实例 interstitialAd = wx.createInterstitialAd({ adUnitId: 'xxxx' }) //3.监听广告,广告显示出来以后你要做的操作 interstitialAd.onLoad(() => { console.log('onLoad event emit') }) //其实可以不用管这个onError,它的作用是如果广告拉取失败,就提示你 interstitialAd.onError((err) => { console.log('onError event emit', err) }) //广告关闭时,触发。 interstitialAd.onClose((res) => { console.log('onClose event emit', res) }) } //2.让广告显示出来 interstitialAd.show().catch((err) => { console.error(err) }) } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
[微信小程序]
The text was updated successfully, but these errors were encountered: