Rewarded
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.
Bridge.advertisement.rewardedState
Possible values: Loading
, Opened
, Closed
, Rewarded
, Failed
.
// To track rewarded ad state changes, subscribe to the event
private void Start()
{
Bridge.advertisement.rewardedStateChanged += OnRewardedStateChanged;
}
private void OnRewardedStateChanged(RewardedState state)
{
Debug.Log(state);
}
Reward the player only when the state is Rewarded
.
Rewarded Placement
Monitor the current placement of the rewarded ad to manage the reward process.
Bridge.advertisement.rewardedPlacement
Show Rewarded Ad
Display a rewarded ad and provide incentives to players for watching the entire ad.
private void Start()
{
var placement = "test_placement"; // optional
Bridge.advertisement.ShowRewarded(placement);
}
Last updated