MARewardedAdDelegate.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // MARewardedAdDelegate.h
  3. // AppLovinSDK
  4. //
  5. // Created by Thomas So on 8/10/18.
  6. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  7. //
  8. #import <AppLovinSDK/MAAdDelegate.h>
  9. @class MAAd;
  10. @class MAReward;
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. * This delegate is notified when a user watches a rewarded video and of whether a reward was granted or rejected.
  14. *
  15. * @see <a href="https://dash.applovin.com/documentation/mediation/ios/getting-started/rewarded-ads">MAX Integration Guide ⇒ iOS ⇒ Rewarded Ads</a>
  16. */
  17. @protocol MARewardedAdDelegate <MAAdDelegate>
  18. /**
  19. * The SDK invokes this method when a user should be granted a reward.
  20. *
  21. * @param ad Ad for which the reward ad was rewarded.
  22. * @param reward The reward to be granted to the user.
  23. */
  24. - (void)didRewardUserForAd:(MAAd *)ad withReward:(MAReward *)reward;
  25. @optional
  26. - (void)didStartRewardedVideoForAd:(MAAd *)ad
  27. __deprecated_msg("This API is deprecated because not all adapters support this callback. Please use -[MAAdDelegate didDisplayAd:] instead");
  28. - (void)didCompleteRewardedVideoForAd:(MAAd *)ad
  29. __deprecated_msg("This API is deprecated because not all adapters support this callback. Please use -[MAAdDelegate didHideAd:] instead");
  30. @end
  31. NS_ASSUME_NONNULL_END