Rewarded

Last Updated on: 19 Sep, 2023

Create Rewarded Ad🔗

INFO

If you miss to Initialize the SDK, this method will fail to return a response.

To create a new rewarded ad, create MesonInterstitial object using your adUnitId and call load method to make an ad request. This will request an ad from all demand sources, select a winner, and show the ad to the end user once the ad is available.

Parameters Data Type Description
adUnitId String

Present on Meson UI by creating an ad unit under an app. An ad unit id is a unique identifier.

For more information on how to set up an ad unit, see Set up Ad Units.

  • Swift
  • Objective-C

Swift

Objective-C

Delegates🔗

Implement MesonInterstitialDelegate to get ad-related events.

  • Swift
  • Objective-C

Swift

Objective-C

Show a Rewarded Ad🔗

You can show an interstitial ad after the mesonInterstitialDidLoad callback. As mentioned above code snippet.

Call show on the MesonInterstitial ad instance.

  • Swift
  • Objective-C

Swift

Objective-C

Rewarded Amount/Event🔗

You can implement the mesonRewardsUnlocked event in MesonInterstitialDelegate. You can also check the implementation in Create Rewarded Ad section code snippet.

  • Swift
  • Objective-C

Swift

Objective-C