GADRewardBasedVideoAdDelegate.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // GADRewardBasedVideoAdDelegate.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "GADAdReward.h"
  9. /// Delegate for receiving state change messages from a GADRewardBasedVideoAd such as ad requests
  10. /// succeeding/failing.
  11. @protocol GADRewardBasedVideoAdDelegate<NSObject>
  12. @optional
  13. /// Tells the delegate that the reward based video ad has been received.
  14. - (void)rewardBasedVideoAdDidReceiveAd:(GADRewardBasedVideoAd *)rewardBasedVideoAd;
  15. /// Tells the delegate that the reward based video ad is opened.
  16. - (void)rewardBasedVideoAdDidOpen:(GADRewardBasedVideoAd *)rewardBasedVideoAd;
  17. /// Tells the delegate that the reward based video ad has started playing.
  18. - (void)rewardBasedVideoAdDidStartPlaying:(GADRewardBasedVideoAd *)rewardBasedVideoAd;
  19. /// Tells the delegate that the reward based video ad is closed.
  20. - (void)rewardBasedVideoAdDidClose:(GADRewardBasedVideoAd *)rewardBasedVideoAd;
  21. /// Tells the delegate that the reward based video ad will leave the application.
  22. - (void)rewardBasedVideoAdWillLeaveApplication:(GADRewardBasedVideoAd *)rewardBasedVideoAd;
  23. /// Tells the delegate that the reward based video ad has rewarded the user.
  24. - (void)rewardBasedVideoAd:(GADRewardBasedVideoAd *)rewardBasedVideoAd
  25. didRewardUserWithReward:(GADAdReward *)reward;
  26. /// Tells the delegate that the reward based video ad has failed to load.
  27. - (void)rewardBasedVideoAd:(GADRewardBasedVideoAd *)rewardBasedVideoAd
  28. didFailToLoadwithError:(NSError *)error;
  29. @end