我没有看过一次视频广告,为啥会显示这个???
代码以下:
let rewardedVideoAd = wx.createRewardedVideoAd({
adUnitId: 'adunit-1a38305ad4cxxxxx'
})
rewardedVideoAd.onError(err => {
console.log(err)
wx.showModal({ title: "提示", content: "当前没有广告哦>_<:" + err.errCode, showCancel: false, cancelText: "", confirmText: "ok" });
})
rewardedVideoAd.onClose(res => {
// 用户点击了【关闭广告】按钮
// 小于 2.1.0 的基础库版本,res 是一个 undefined
if (res && res.isEnded || res === undefined) {
// 正常播放结束,可以下发游戏奖励
that.uiHelp.hide()
that.rebirth()
that.hasRebirthByViedo = true
}
else {
//播放中途退出,不下发游戏奖励
}
})
rewardedVideoAd.load()
.then(() => rewardedVideoAd.show())
.catch(err => console.log(err.errMsg))
你好,请参考文档:https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
广告id检查了,确定没问题啊
上面那些截的代码写的id是我处理过了,后面几个xxx是马赛克
这个激励视频确实有问题,我们体验版还能弹出来,一经发布就弹不出来了,提示
no advertisement,请微信的大佬解释下。。。