Skip to main content
Version: Next

Rewarded Ad

Rewarded ads are ads that users have the option of interacting with in exchange for in-app rewards.

Usage​

let rewarded

document.addEventListener('deviceready', async () => {
rewarded = new admob.RewardedAd({
adUnitId: 'ca-app-pub-xxx/yyy',
})

rewarded.on('load', (evt) => {
// Once a rewarded ad is shown, it cannot be shown again.
// Starts loading the next rewarded ad as soon as it is dismissed.
await rewarded.load()
})

await rewarded.load()
await rewarded.show()
}, false)

Events​

load​

loadfail​

show​

showfail​

reward​

User has earned reward.

{
reward: {
amount: 10,
type: "coins"
}
}

dismiss​

impression​

Server-side Verification​