# wx.miniapp.setEnableAdSplash
iOS >= 1.2.9Android >=2.1.12
- App When the open screen ad is opened, the developer can locally set whether the open screen ad is displayed. Since the flag position is stored in the App Local, App Uninstalling and reinstalling will cause the flag position to fail. if App Local does not have the logo bit information, whether the open screen advertisement is displayed by
project.miniapp.json
to hit the targetSplashAd defaultEnable
Switch control, the switch is on by default. The configuration of the tool can be viewedGuidelines for the Use of Advertising - Supplement, this interface capability depends on the GDT SDK, the developer needs to project.miniapp.json Check the corresponding extension in SDK
# parameter
attribute | type | Default value | Required | Introductions |
---|---|---|---|---|
enable | boolean | yes | Whether to display open screen advertising |
# JSAPI Examples of code
wx.miniapp.setEnableAdSplash ({
enable: false
})