May 18, 2021 WeChat Mini Program Development Document
Base library 2.10.4 starts to support, and low versions need to be compatible.
Native template ads.
Property | Type | The default | Required | Description | The lowest version |
---|---|---|---|---|---|
unit-id | string | Is | Ad unit id, which can be created in the main module of traffic behind the scenes for small program management | 2.10.4 | |
ad-intervals | number | Whether | The interval between automatic ad refreshes, in seconds, and the parameter value must be greater than or equal to 30 (template ads do not automatically refresh when the parameter is not passed in) | 2.10.4 | |
bindload | eventhandle | Whether | The ad loads a successful callback | 2.10.4 | |
binderror | eventhandle | Whether | Callbacks to ad load failure, event.detail . | 2.10.4 |
The error code is an error message obtained through the binderror callback.
Code | Abnormal condition | Reason | Solution |
---|---|---|---|
1000 | The back-end error call failed | This error is not an exception for the developer | In general, you can recover by ignoring it for a period of time. |
1001 | The argument is wrong | The method used is wrong | You can go developers.weixin.qq.com to confirm specific tutorials (small programs and games have their own tutorials) and you can switch between the top options, to the right of the Design column. |
1002 | The ad unit is not valid | It could be a misspelling or a misuse of another APP's ad ID | Please go back to mp.weixin.qq.com confirm your ad bit ID. |
1003 | Internal error | This error is not an exception for the developer | In general, you can recover by ignoring it for a period of time. |
1004 | Uncomplete advertising | Advertising is not every time, this time has not appeared because the user is not suitable for browsing ads. | It is normal, and developers need to be compatible with this situation. |
1005 | Advertising component audit | Your advertisement is being reviewed and cannot show advertising. | Please go to mp.weixin.qq.com to confirm the review status, and developers need to be compatible with this situation. |
1006 | Advertising components are dismissed | Your advertising failed, unable to show advertising | Please go to mp.weixin.qq.com to confirm the review status, and developers need to be compatible with this situation. |
1007 | Advertising components are dismissed | Your advertising capacity has been banned, and advertisements cannot be displayed during the ban. | Please go to mp.weixin.qq.com to confirm the small program advertising. |
1008 | The advertising unit is closed | The advertising capacity of the advertising is already closed | Please go to mp.weixin.qq.com to reopen the presentation of the corresponding ad position. |