GADRewardBasedVideoAd.h 940 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // GADRewardBasedVideoAd.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright 2015 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. @class GADRequest;
  10. @protocol GADRewardBasedVideoAdDelegate;
  11. @interface GADRewardBasedVideoAd : NSObject
  12. /// Delegate for receiving video notifications.
  13. @property(nonatomic, weak) id<GADRewardBasedVideoAdDelegate> delegate;
  14. /// Indicates if the receiver is ready to be presented full screen.
  15. @property(nonatomic, readonly, assign, getter=isReady) BOOL ready;
  16. /// Singleton instance.
  17. + (GADRewardBasedVideoAd *)sharedInstance;
  18. /// Initiate the request to fetch the reward based video ad.
  19. - (void)loadRequest:(GADRequest *)request
  20. withAdUnitID:(NSString *)adUnitID
  21. userID:(NSString *)userID;
  22. /// Present the reward based video ad with provided view controller.
  23. - (void)presentFromRootViewController:(UIViewController *)viewController;
  24. @end