GADNativeAd.h 1009 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // GADNativeAd.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. @protocol GADNativeAdDelegate;
  10. /// Native ad base class. All native ad types are subclasses of this class.
  11. @interface GADNativeAd : NSObject
  12. /// Optional delegate to receive state change notifications.
  13. @property(nonatomic, weak) id<GADNativeAdDelegate> delegate;
  14. /// Root view controller for handling ad actions.
  15. @property(nonatomic, weak) UIViewController *rootViewController;
  16. /// Dictionary of assets which aren't processed by the receiver.
  17. @property(nonatomic, readonly, copy) NSDictionary *extraAssets;
  18. /// The ad network class name that fetched the current ad. For both standard and mediated Google
  19. /// AdMob ads, this method returns @"GADMAdapterGoogleAdMobAds". For ads fetched via mediation
  20. /// custom events, this method returns @"GADMAdapterCustomEvents".
  21. @property(nonatomic, readonly, copy) NSString *adNetworkClassName;
  22. @end