RewardedVideoAd.onError初始化不执行

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:00 607 0 全屏看文

AI助手支持GPT4.0

RewardedVideoAd.onError初始化不执行
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug 激励视频广告 微信安卓客户端 7.0.14 2.7.0

问题:进入小游戏后,初始化时绑定RewardedVideoAd.onError监听,当用户无广告,拉取失败时,无错误回调,开发者无法判断具体错误原因。

影响:这样的话,我们就没办法在用户进入小游戏初始化的时候判断用户是否有广告了,也就无法对应的展示广告触发按钮了。

另:需要点击广告触发场景,再次拉取广告后才会执行错误回调。

请官方人员帮忙解决,谢谢!

Framework type problem type API / component name terminal type wechat version basic library version small game bug incentive video advertisement wechat Android client 7.0.14 2.7.0 problem: after entering the small game, it is bound during initialization RewardedVideoAd.onError Monitoring: when the user has no advertisement and the pull fails, there is no error callback, so the developer can't determine the specific cause of the error. Impact: in this way, we can't judge whether users have ads when they enter the game initialization, and we can't display the corresponding trigger button for ads. Another: you need to click the advertisement to trigger the scene and pull the advertisement again before executing the error callback. Please help to solve the problem, thank you!

回答:

Forever:

参考一下官方提供的小游戏api调用demo(https://github.com/wechat-miniprogram/minigame-demo)?

小游戏运营专员-宏:

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

Kyle:你好,提供问题素材如下:
机型:vivo Xplay5A
安卓:5.1.1 
系统版本:Funtouch OS_3.0 Lite
微信版本:7.0.16
代码示例:

-EOF-

AI助手支持GPT4.0