Send feedback
GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADNativeContentAd
Native 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.
Declaration
Objective-C
@property ( readonly , copy , nonatomic , nullable ) NSString * headline ;
Declaration
Objective-C
@property ( readonly , copy , nonatomic , nullable ) NSString * body ;
Declaration
Objective-C
@property ( readonly , copy , nonatomic , nullable )
NSArray < GADNativeAdImage *> * images ;
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
assetViews
Dictionary 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
clickableAssetViews
Dictionary of asset views that are clickable, keyed by asset IDs.
nonclickableAssetViews
Dictionary 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 ;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-03-03 UTC."],[],[],null,["# GoogleMobileAds Framework Reference\n\nGADNativeContentAd\n==================\n\n\n @interface GADNativeContentAd : ../Classes/GADNativeAd.html\n\nNative content ad. To request this ad type, you need to pass kGADAdLoaderAdTypeNativeContent\n(see GADAdLoaderAdTypes.h) to the \\|adTypes\\| parameter in GADAdLoader's initializer method. If\nyou request this ad type, your delegate must conform to the GADNativeContentAdLoaderDelegate\nprotocol.\n[Must be displayed\n-----------------](#/Must%20be%20displayed)\n\n- `\n ``\n ``\n `\n\n ### [headline](#/c:objc(cs)GADNativeContentAd(py)headline)\n\n `\n ` \n Primary text headline. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) NSString *headline;\n\n- `\n ``\n ``\n `\n\n ### [body](#/c:objc(cs)GADNativeContentAd(py)body)\n\n `\n ` \n Secondary text. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) NSString *body;\n\n[Recommended to display\n----------------------](#/Recommended%20to%20display)\n\n- `\n ``\n ``\n `\n\n ### [images](#/c:objc(cs)GADNativeContentAd(py)images)\n\n `\n ` \n Large images. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, copy, nonatomic, nullable)\n NSArray\u003c../Classes/GADNativeAdImage.html *\u003e *images;\n\n- `\n ``\n ``\n `\n\n ### [logo](#/c:objc(cs)GADNativeContentAd(py)logo)\n\n `\n ` \n Small logo image. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, strong, nonatomic, nullable) ../Classes/GADNativeAdImage.html *logo;\n\n- `\n ``\n ``\n `\n\n ### [callToAction](#/c:objc(cs)GADNativeContentAd(py)callToAction)\n\n `\n ` \n Text that encourages user to take some action with the ad. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) NSString *callToAction;\n\n- `\n ``\n ``\n `\n\n ### [advertiser](#/c:objc(cs)GADNativeContentAd(py)advertiser)\n\n `\n ` \n Identifies the advertiser. For example, the advertiser's name or visible URL. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, copy, nonatomic, nullable) NSString *advertiser;\n\n- `\n ``\n ``\n `\n\n ### [videoController](#/c:objc(cs)GADNativeContentAd(py)videoController)\n\n `\n ` \n Video controller for controlling video playback in GADNativeContentAdView's mediaView. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, strong, nonatomic)\n ../Classes/GADVideoController.html *_Nonnull videoController;\n\n- `\n ``\n ``\n `\n\n ### [-registerAdView:assetViews:](#/c:objc(cs)GADNativeContentAd(im)registerAdView:assetViews:)\n\n `\n ` \n Registers ad view and asset views created with this native ad. \n\n #### Declaration\n\n Objective-C \n\n - (void)registerAdView:(nonnull UIView *)adView\n assetViews:\n (nonnull NSDictionary\u003c../Type-Definitions.html#/c:GADNativeContentAdAssetIDs.h@T@GADNativeContentAdAssetID, UIView *\u003e *)\n assetViews;\n\n #### Parameters\n\n |--------------------|-----------------------------------------------|\n | ` `*assetViews*` ` | Dictionary of asset views keyed by asset IDs. |\n\n- `\n ``\n ``\n `\n\n ### [-registerAdView:clickableAssetViews:nonclickableAssetViews:](#/c:objc(cs)GADNativeContentAd(im)registerAdView:clickableAssetViews:nonclickableAssetViews:)\n\n `\n ` \n Registers ad view, clickable asset views, and nonclickable asset views with this native ad.\n Media view shouldn't be registered as clickable. \n\n #### Declaration\n\n Objective-C \n\n - (void)registerAdView:(nonnull UIView *)adView\n clickableAssetViews:\n (nonnull NSDictionary\u003c../Type-Definitions.html#/c:GADNativeContentAdAssetIDs.h@T@GADNativeContentAdAssetID, UIView *\u003e *)\n clickableAssetViews\n nonclickableAssetViews:\n (nonnull NSDictionary\u003c../Type-Definitions.html#/c:GADNativeContentAdAssetIDs.h@T@GADNativeContentAdAssetID, UIView *\u003e *)\n nonclickableAssetViews;\n\n #### Parameters\n\n |--------------------------------|-----------------------------------------------------------------------|\n | ` `*clickableAssetViews*` ` | Dictionary of asset views that are clickable, keyed by asset IDs. |\n | ` `*nonclickableAssetViews*` ` | Dictionary of asset views that are not clickable, keyed by asset IDs. |\n\n- `\n ``\n ``\n `\n\n ### [-unregisterAdView](#/c:objc(cs)GADNativeContentAd(im)unregisterAdView)\n\n `\n ` \n Unregisters ad view from this native ad. The corresponding asset views will also be\n unregistered. \n\n #### Declaration\n\n Objective-C \n\n - (void)unregisterAdView;"]]