# RewardedVideoAd.onError(function callback)
with Promise style call: Not supported
Mini Program plugin: Not supported
Listen for incentive video error events.
# parameter
# function callback
Callback Functions for Motivating Video Error Events
# parameter
# Object res
attribute | type | Introductions | Minimum version |
---|---|---|---|
errMsg | string | Error message | |
errCode | number | Error code | 2.2.2 |
errCode Legal value
value | Introductions | Minimum version |
---|---|---|
1000 | Back-end interface call failed | |
1001 | Parameter error | |
1002 | Invalid advertising unit | |
1003 | Internal error | |
1004 | No suitable advertising | |
1005 | Advertising component audit | |
1006 | Advertising components rejected | |
1007 | Advertising component banned | |
1008 | Ad unit closed |
# Error Code Information and Solution Table
The error code is the error message obtained through onError. During debugging, you can catch information by returning an exception. After the Mini Programs are released online, if you encounter any unusual problems, you can"Operations Center."It searches for error logs and adds appropriate monitoring information for exception returns.
code | Abnormal situation | reason | Solution |
---|---|---|---|
1000 | Failed backend error call | The error is not a developer exception | Generally ignored for a period of time to recover. |
1001 | Parameter error | Use Method Error | You can go to developers.wechat.qq.com to confirm the tutorial (there are tutorials for Mini Programs and games, and you can switch from the top option to the right of the "Design" column. |
1002 | Invalid advertising unit | May be a typo, or misuse of another app advertising ID | Please go back to mp.wechat.qq.com to confirm your ad spot ID. |
1003 | Internal error | The error is not a developer exception | Generally ignored for a period of time to recover. |
1004 | No suitable advertising | Ads don't appear every time. This one may be because the user is not suitable for viewing ads | This is normal, and developers need to be morphologically compatible for this situation. |
1005 | Advertising component audit | Your ad is being reviewed and cannot be shown. | Please go to mp.wechat.qq.com to confirm the audit status, and developers need to make morphological compatibility for this situation. |
1006 | Advertising components rejected | Your ad review failed to show the ad | Please go to mp.wechat.qq.com to confirm the audit status, and developers need to make morphological compatibility for this situation. |
1007 | Advertising components rejected | Your ability to advertise has been banned and cannot be displayed during the ban. | Please go to mp.wechat.qq.com to confirm the status of Mini Programs Advertising Ban. |
1008 | Ad unit closed | The advertising capacity of the ad space has been shut down | Please go to mp.wechat.qq.com to reopen the display of the corresponding ad space. |