RewardedVideoAd.show
Show the rewarded video ad.
Return Value
Promise<void>
The Promise reports only the result of the show() call; it does not mean the ad was displayed successfully. Load or display failures are reported through onError(), and closing through onClose().
Each instance is shown at most once. Clean it up after it closes or fails, and create a new instance for the next ad.
Example
javascript
rewardedVideoAd.show()
.then(() => {
console.log('Rewarded video ad show call issued; waiting for onClose or onError');
})
.catch((err) => {
console.error('Rewarded video ad show call failed', err);
})
.finally(() => {
console.log('Rewarded video ad show call finished');
});