收藏
回答

激励视频show()的时候没有反应?

激励视频show()的时候没有反应,onError也监听不到错误,重新load()后show也是没反馈,是什么原因

let videoAd = wx.createRewardedVideoAd({

    adUnitId: id

})

videoAd.offClose()

videoAd.offError()

videoAd.onClose(function (res) {

    director.resume()

    if (res.isEnded) {

        bol = true;

    } else {

        bol = false

    }

    func(bol)

})


videoAd.onError(function (err) {

    console.log('视频错误', err)

    if (err.errCode) {

        if (err.errCode != 1004) {

            UIMgr.Instance.addToolTips('拉取广告错误,错误编号' + err.errCode)

        } else {

            UIMgr.Instance.addToolTips('由于播放广告太多或者其他问题,暂时无法拉取广告,请你稍后再试,错误编号' + err.errCode)

        }

    }

    Video.ts.over()

    if (playerData.infoData.VideoErrShareTime < 10) {

 

    } else {

        func(false)

    }

})

videoAd.show()

    .then(() => {

        //@ts-ignore

        wx.hideLoading()

    })

    .catch(() => {

        // 失败重试

        videoAd.load()

            .then(() => {

                videoAd.show()

                //@ts-ignore

                wx.hideLoading()

            })

            .catch(err => {

                //@ts-ignore

                wx.hideLoading()

                console.log('激励视频 广告显示失败', err)

                Video.ts.over()

                AllAd.ts.showInterstitialAd(true, (bolS) => {

                    console.warn('视频错误 显示插屏', bolS)

                    func(bolS)

                })

                // func(false)

                // AllAd.ts.share((shareBol)=>{

                //     func(shareBol)

                // })

            })

    })


回答关注问题邀请回答
收藏

3 个回答

  • 微信广告运营专员-Lin
    微信广告运营专员-Lin
    2025-11-06

    你好,近期存在问题广告,当前已修复,可以看看:

    1. 当前是否还能复现

    2. 必现 or 偶现

    3. 提供 onError 以及 show().catch(res => console.log(res)) 报错详情 

    2025-11-06
    有用
    回复 2
    • 大大大闹钟
      大大大闹钟
      2025-11-08
      偶现,onError和show().cathch 里都没有报错详情
      2025-11-08
      回复
    • 大大大闹钟
      大大大闹钟
      2025-11-08
      问一下,问题广告会出现什么问题?
      2025-11-08
      回复
  • showms
    showms
    2025-11-06

    show方法后面的then和catch都加一个参数比如res,然后打印出来看下就知道了

    2025-11-06
    有用
    回复 2
    • 大大大闹钟
      大大大闹钟
      2025-11-06
      then和catch也没反应,就卡在那了,而且不是所有人会这样,只有个别人会出现这种情况
      2025-11-06
      回复
    • 大大大闹钟
      大大大闹钟
      2025-11-06
      以前没出现过这种情况,就最近出现了
      2025-11-06
      回复
  • 智能回答 智能回答 本次回答由AI生成
    2025-11-05
    有用
登录 后发表内容