- JS API 列表
- 基础
- 网络
- 媒体
- 地图
- 文件
- 开放接口
- 数据缓存
- 地理位置
- 设备
- 画布
- 界面
- 页面导航
- 侧边栏能力
- 行业开放
- AI/AR能力
- 第三方平台
- TTML
- 转发和挂载
- 其它
- 直播能力
RewardedVideoAd.onError收藏我的收藏
收藏
我的收藏基础库 1.57.0 开始支持本方法,低版本需做兼容处理,这是一个同步方法。
绑定 error 事件的监听器。
前提条件 | 无 |
业务背景 | 无 |
使用限制 | 注意,目前只能在抖音使用该方法,今日头条等宿主暂不支持。 |
注意事项 | 激励视频广告组件实例 RewardedVideoAd 的创建及更多属性方法请参考 tt.createRewardedVideoAd 。 |
支持沙盒 | 否 |
相关教程 | 无 |
语法
RewardedVideoAd.onError(callback)
参数说明
callback
类型 | 默认值 | 必填 | 说明 | 最低支持版本 |
---|---|---|---|---|
function | 是 | 广告组件拉取广告素材时如果发生错误,会触发 error 事件的监听器,具体错误码可参考广告错误码说明 。 | 1.57.0 |
返回值
无
错误码
errorCode | errMsg | errorType | 说明 | 最低支持版本 |
---|---|---|---|---|
139903 | The video advertisement for current adUnitId doesn't exist | F | 小程序框架内部错误,有需要请拉客服咨询 | 1.57.0 |
139902 | The adUnitId is closed | D | 广告位已关闭,检查广告位是否关闭 | 1.57.0 |
139902 | The adUnitId is prohibit | D | 广告位被封禁,自查是否有作弊行为 | 1.57.0 |
139902 | The adUnitId is invalid | D | 非法广告位 | 1.57.0 |
139902 | The adUnitId is empty | D | adUnitId为空,传入正确的adUnitId | 1.57.0 |
139987 | feature is not supported in app | D | 当前宿主不支持,暂时没有支持的计划 | 1.57.0 |
139908 | Reward video ad is playing, can't show now!Interstitial Ad is showing, can't show now!app in background is not support show ad | D | 正在展示激励/插屏广告,不要重复调用展示小程序处于后台不允许调用广告展示 | 1.57.0 |
139906 | request ad failed:%s, serverCode=%ld | F | 小程序框架内部错误,有需要请拉客服咨询 | 1.57.0 |
158804 | rewarded video ad is destroyed | D | 激励视频广告已销毁 | 1.57.0 |
扫码体验
请使用字节宿主APP扫码
代码示例
该文档是否有帮助?
点击纠错