Rewarded ads are a type of advertisement where players have the option to watch an ad in exchange for in-game rewards
Offer players rewards in exchange for watching ads, incentivizing ad engagement and increasing ad revenue.
Rewarded State
Monitor the state of the rewarded ad (loading, opened, closed, rewarded, failed) to manage the reward process.
playgama_bridge_advertisement_rewarded_state()
Possible values: loading, opened, closed, rewarded, failed.
// To track rewarded ad state changes, subscribe to the event
// via Async Social Event
if async_load[? "type"] == "playgama_bridge_advertisement_rewarded_state_changed" {
switch async_load[? "data"] {
case "loading":
// your logic here
break
case "opened":
// your logic here
break
case "closed":
// your logic here
break
case "failed":
// your logic here
break
}
}
// via script
function playgama_bridge_advertisement_rewarded_state_changed(data) {
switch data {
case "loading":
// your logic here
break
case "opened":
// your logic here
break
case "rewarded":
// your logic here
break
case "closed":
// your logic here
break
case "failed":
// your logic here
break
}
}
React to changes in ad state. For example, mute the game sound when opened and unmute when closed and failed.
Reward the player only when the state is rewarded.
Show Rewarded Ad
Display a rewarded ad and provide incentives to players for watching the entire ad.