GADNativeContentAd
@interface GADNativeContentAd : GADNativeAdNative content ad. To request this ad type, you need to pass kGADAdLoaderAdTypeNativeContent (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADNativeContentAdLoaderDelegate protocol.
-
Primary text headline.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSString *headline; -
Secondary text.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSString *body;
-
Large images.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSArray<GADNativeAdImage *> *images; -
Small logo image.
Declaration
Objective-C
@property (readonly, strong, nonatomic, nullable) GADNativeAdImage *logo; -
Text that encourages user to take some action with the ad.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSString *callToAction; -
Identifies the advertiser. For example, the advertiser’s name or visible URL.
Declaration
Objective-C
@property (readonly, copy, nonatomic, nullable) NSString *advertiser; -
Video controller for controlling video playback in GADNativeContentAdView’s mediaView.
Declaration
Objective-C
@property (readonly, strong, nonatomic) GADVideoController *_Nonnull videoController; -
Registers ad view and asset views created with this native ad.
Declaration
Objective-C
- (void)registerAdView:(nonnull UIView *)adView assetViews: (nonnull NSDictionary<GADNativeContentAdAssetID, UIView *> *) assetViews;Parameters
assetViewsDictionary of asset views keyed by asset IDs.
-
Registers ad view, clickable asset views, and nonclickable asset views with this native ad. Media view shouldn’t be registered as clickable.
Declaration
Objective-C
- (void)registerAdView:(nonnull UIView *)adView clickableAssetViews: (nonnull NSDictionary<GADNativeContentAdAssetID, UIView *> *) clickableAssetViews nonclickableAssetViews: (nonnull NSDictionary<GADNativeContentAdAssetID, UIView *> *) nonclickableAssetViews;Parameters
clickableAssetViewsDictionary of asset views that are clickable, keyed by asset IDs.
nonclickableAssetViewsDictionary of asset views that are not clickable, keyed by asset IDs.
-
Unregisters ad view from this native ad. The corresponding asset views will also be unregistered.
Declaration
Objective-C
- (void)unregisterAdView;