Mini Program Ads
WdAd
Usage Instructions
-
Used to display WeChat ads in Mini Programs, enabling recommended ads to gain impressions and clicks, thereby allowing Mini Programs to generate revenue.
-
Select the rewarded video ad component. After configuring the ad unit id, you can display rewarded video ads by calling the component method.
Component Usage Limits
- This component must be used in a real Mini Program environment to see the actual effect.
Properties
External properties received by the component
Property Name | Property Identifier | Type | Description |
|---|
| ad type | adType | string | Default value: "banner" |
| ad unit id | unitId | string | |
| Ad topic | adTheme | string | Default value: "white" |
| Ad refresh interval | adIntervals | number | Ad automatically refresh interval time in seconds |
| Grid count | gridCount | number | Default value: 5 |
| Multi-instance mode | multiton | boolean | |
| Disable share page | disableFallbackSharePage | boolean |
Events
Events exposed by the component. You can listen to component events to trigger external actions
Event Name | Event Code | Event Output Parameters event.detail | Applicable Scenarios | Description |
|---|
| ad load successfully | load | Mini Program | - | |
| Ad loading failed | error | Mini Program | - | |
| Ad closed | close | Mini Program | - |