May 19, 2021 WeChat Mini Program Development Document
Base library 2.6.0 starts to support, and low versions need to be compatible.
Create an on-screen ad component. U se the API before using the underlying library version number by using wx.getSystemInfoSync() to return the object's SDKVersion. Each time the method is called to create an on-screen ad, a brand new instance is returned (the on-screen ad instance on the small terminal is not allowed across pages).
Property | Type | The default | Required | Description |
---|---|---|---|---|
adUnitId | string | Is | Ad unit id |
In-screen advertising components