激励广告怎么关闭不了,一直自动调起来
https://developers.weixin.qq.com/miniprogram/dev/api/ad/wx.createRewardedVideoAd.html 在同一个页面关闭和放弃,又重新弹出广告,怎么处理才能关闭,重新调用才弹出广告 if(!wx.createRewardedVideoAd){
return;
}
let rewardedVideoAd = wx.createRewardedVideoAd({ adUnitId: 'XXXXX'});
rewardedVideoAd.onLoad(() => {
console.log('onLoad event emit')
rewardedVideoAd.show();
})
rewardedVideoAd.onError((err) => {
})
rewardedVideoAd.onClose((res) => {
if(res && res.isEnded){
// 获得激励
}
return false;
})
为什么在页面点了关闭和放弃,又重新弹出广告