Rewarded ads let you offer users in-app items—such as continued gameplay, virtual currency, or other rewards—in exchange for their engagement with ads.
Rewarded ads boost engagement because users receive a tangible benefit for their time.
The following sections show you how to load and then show a rewarded ad.
Loading a rewarded ad
The following code shows you how to bind to delegates and load the first rewarded ad:
if (UAppLovinMAX::IsRewardedAdReady(RewardedAdUnitId))
{
UAppLovinMAX::ShowRewardedAd(RewardedAdUnitId);
}
S2S rewarded callbacks
You can receive callbacks to your currency server.
To learn how, see the MAX S2S rewarded callback API guide.
Then update the Server Side Callback URL in your Edit Ad Unit page.
Setting the amount and currency for a rewarded ad
To set the reward amount and currency:
Click Add S2S Reward Callback in your Edit Ad Unit page:
Add the Server Side Callback URL, Reward Amount, and Rewarded Currency Name: