GADNativeAd
@interface GADNativeAd : NSObject
Native ad base class. All native ad types are subclasses of this class.
-
Optional delegate to receive state change notifications.
Declaration
Objective-C
@property (readwrite, nonatomic, nullable) id<GADNativeAdDelegate> delegate;
-
Reference to the root view controller for the native ad. This is the view controller the ad will present from if necessary (for example, presenting a landing page after a user click). Most commonly, this is the view controller the ad is displayed in.
Declaration
Objective-C
@property(nonatomic, weak, nullable) UIViewController *rootViewController
-
Dictionary of assets which aren’t processed by the receiver.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSDictionary *extraAssets;
-
The ad network class name that fetched the current ad. For both standard and mediated Google AdMob ads, this method returns @
GADMAdapterGoogleAdMobAds
. For ads fetched via mediation custom events, this method returns @GADMAdapterCustomEvents
.Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSString *adNetworkClassName;