Skip to content

Rewarded Ads

Loading a Rewarded Ad

The following code shows you how to bind to delegates and load the first rewarded ad:

Initialize Rewarded Ads (Custom Event). Rewarded ad is ready to be shown. “Is Rewarded Ad Ready” will return True. On Rewarded Ad Loaded Dynamic Delegate (AppLovinMAXDelegate: Ad Info. Reset retry attempts. SET: Retry Attempt 0.0. If rewarded ad fails to load, retry with exponentially higher delays up to a maximum delay (in this case 64 seconds). On Rewarded Ad Load Failed Dynamic Delegate (AppLovinMAXDelegate): Ad Info, Ad Error. Retry Attempt. ++. MIN (6.0), Add pin+. Power: Exp, Return Value. Delay: Duration, Completed. Rewarded ad failed to display. AppLovin recommends loading the next ad. On Rewarded Ad Display Failed Dynamic Delegate (AppLovinMAXDelegate): Ad Info, Ad Error. Rewarded ad is hidden. Pre-load the next ad. On Rewarded Ad Hidden Dynamic Delegate (AppLovinMAXDelegate): Ad Info. Rewarded ad was displayed and user should receive the reward. On Rewarded Ad Received Reward Dynamic Delegate (AppLovinMAXDelegate): Ad Info, Reward. Ad Unit Identifier. Load Rewarded Ad: Ad Unit Identifier.

Showing a Rewarded Ad

To show a rewarded ad, call ShowRewardedAd():

Ad Unit Identifier. Is Rewarded Ad Ready: Ad Unit Identifier, Return Value. Branch: Condition (True). Show Rewarded Ad: Ad Unit Identifier, Placement.

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:

  1. Click Add S2S Reward Callback in your Edit Ad Unit page: Ad Type: ☐App Open, ☐Banner, ☐Interstitial, ☐MRec, ☐Native, ☑Rewarded. Add S2S Reward Callback.
  2. Add the Server Side Callback URL, Reward Amount, and Rewarded Currency Name: Ad Type: ☐App Open, ☐Banner, ☐Interstitial, ☐MRec, ☐Native, ☑Rewarded. Hide Callback Settings. Server Side Callback URL form field. Reward Amount form field. Rewarded Currency Name form field. AppLovin Event Key form field.