let video1 = wx.createRewardedVideoAd({ adUnitId: 'xxxx' })let video2 = wx.createRewardedVideoAd({ adUnitId: 'xxxx' })console.log(video1 === video2)// true
let rewardedVideoAd = wx.createRewardedVideoAd({ adUnitId: 'xxxx' })
rewardedVideoAd.show()
close button. Developers cannot control the hiding of the rewarded video ad component.close button.rewardedVideoAd.onLoad(() => {console.log('rewardedVideoAd load')})rewardedVideoAd.show().then(() => console.log('rewardedVideoAd show'))
rewardedVideoAd.onError(err => {console.log(err)})
rewardedVideoAd.show().catch(err => console.log(err))
rewardedVideoAd.show().catch(err => {rewardedVideoAd.load().then(() => rewardedVideoAd.show())})
rewardedVideoAd.load().then(() => rewardedVideoAd.show())
close button. This event can be listened using RewardedVideoAd.onClose() .The close button is displayed after the rewarded video finishes playing.So when onClose is triggered, it can be assumed that the user has watched the entire ad.Property | Type | Description |
isEnded | boolean | Indicates whether the video was closed after the user watched it completely (true), or during playback (false). |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback