Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

62 строки
2.2 KiB

  1. // Copyright 2014 Google Inc. All Rights Reserved.
  2. #import <Foundation/Foundation.h>
  3. #import <GoogleMobileAds/GoogleMobileAds.h>
  4. #import "GADUTypes.h"
  5. @interface GADURewardBasedVideoAd : NSObject
  6. /// Initializes a GADURewardBasedVideoAd.
  7. - (instancetype)initWithRewardBasedVideoClientReference:
  8. (GADUTypeRewardBasedVideoAdClientRef *)rewardBasedVideoAdClient;
  9. /// The reward based video ad.
  10. @property(nonatomic, strong) GADRewardBasedVideoAd *rewardBasedVideo;
  11. /// A reference to the Unity reward based video ad client.
  12. @property(nonatomic, assign) GADUTypeRewardBasedVideoAdClientRef *rewardBasedVideoAdClient;
  13. /// The ad received callback into Unity.
  14. @property(nonatomic, assign) GADURewardBasedVideoAdDidReceiveAdCallback adReceivedCallback;
  15. /// The ad failed callback into Unity.
  16. @property(nonatomic, assign)
  17. GADURewardBasedVideoAdDidFailToReceiveAdWithErrorCallback adFailedCallback;
  18. /// The as was opened callback into Unity.
  19. @property(nonatomic, assign) GADURewardBasedVideoAdDidOpenCallback didOpenCallback;
  20. /// The ad started playing callback into Unity.
  21. @property(nonatomic, assign) GADURewardBasedVideoAdDidStartPlayingCallback didStartPlayingCallback;
  22. /// The ad was closed callback into Unity.
  23. @property(nonatomic, assign) GADURewardBasedVideoAdDidCloseCallback didCloseCallback;
  24. /// The user was rewarded callback into Unity.
  25. @property(nonatomic, assign) GADURewardBasedVideoAdDidRewardCallback didRewardCallback;
  26. /// The will leave application callback into Unity.
  27. @property(nonatomic, assign) GADURewardBasedVideoAdWillLeaveApplicationCallback willLeaveCallback;
  28. /// The did complete callback into Unity.
  29. @property(nonatomic, assign) GADURewardBasedVideoAdDidCompleteCallback didCompleteCallback;
  30. // Returns the mediation adapter class name.
  31. @property(nonatomic, readonly, copy) NSString *mediationAdapterClassName;
  32. /// Makes an ad request. Additional targeting options can be supplied with a request object.
  33. - (void)loadRequest:(GADRequest *)request withAdUnitID:(NSString *)adUnitID;
  34. /// Returns YES if the reward based video is ready to be displayed.
  35. - (BOOL)isReady;
  36. /// Shows the reward based video ad.
  37. - (void)show;
  38. // Sets the user ID to be used in server-to-server reward callbacks.
  39. - (void)setUserId:(NSString *)userId;
  40. @end