Native custom template ad. To request this ad type, you need to pass
kGADAdLoaderAdTypeNativeCustomTemplate (see GADAdLoaderAdTypes.h) to the |adTypes| parameter
in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to
the GADNativeCustomTemplateAdLoaderDelegate protocol.
Custom click handler. Set this property only if this template ad is configured with a custom
click action, otherwise set it to nil. If this property is set to a non-nil value, the ad’s
built-in click actions are ignored and |customClickHandler| is executed when a click on the
asset is received.
Call when the user clicks on the ad. Provide the asset key that best matches the asset the user
interacted with. If this ad is configured with a custom click action, ensure the receiver’s
customClickHandler property is set before calling this method.
Call when the user clicks on the ad. Provide the asset key that best matches the asset the user
interacted with. Provide |customClickHandler| only if this template is configured with a custom
click action, otherwise pass in nil. If a block is provided, the ad’s built-in click actions are
ignored and |customClickHandler| is executed after recording the click.
This method is deprecated. See performClickOnAssetWithKey: API.
[[["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\nGADNativeCustomTemplateAd\n=========================\n\n @interface GADNativeCustomTemplateAd : ../Classes/GADNativeAd.html\n\nNative custom template ad. To request this ad type, you need to pass\nkGADAdLoaderAdTypeNativeCustomTemplate (see GADAdLoaderAdTypes.h) to the \\|adTypes\\| parameter\nin GADAdLoader's initializer method. If you request this ad type, your delegate must conform to\nthe GADNativeCustomTemplateAdLoaderDelegate protocol.\n- `\n ``\n ``\n `\n\n ### [templateID](#/c:objc(cs)GADNativeCustomTemplateAd(py)templateID)\n\n `\n ` \n The ad's custom template ID. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, nonatomic) NSString *_Nonnull templateID;\n\n- `\n ``\n ``\n `\n\n ### [availableAssetKeys](#/c:objc(cs)GADNativeCustomTemplateAd(py)availableAssetKeys)\n\n `\n ` \n Array of available asset keys. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, nonatomic) NSArray\u003cNSString *\u003e *_Nonnull availableAssetKeys;\n\n- `\n ``\n ``\n `\n\n ### [videoController](#/c:objc(cs)GADNativeCustomTemplateAd(py)videoController)\n\n `\n ` \n Returns video controller for controlling receiver's video. \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 ### [mediaView](#/c:objc(cs)GADNativeCustomTemplateAd(py)mediaView)\n\n `\n ` \n Returns media view for rendering video loaded by the receiver. Returns nil if receiver doesn't\n has a video. \n\n #### Declaration\n\n Objective-C \n\n @property (readonly, strong, nonatomic, nullable) ../Classes/GADMediaView.html *mediaView;\n\n- `\n ``\n ``\n `\n\n ### [customClickHandler](#/c:objc(cs)GADNativeCustomTemplateAd(py)customClickHandler)\n\n `\n ` \n Custom click handler. Set this property only if this template ad is configured with a custom\n click action, otherwise set it to nil. If this property is set to a non-nil value, the ad's\n built-in click actions are ignored and \\|customClickHandler\\| is executed when a click on the\n asset is received. \n\n #### Declaration\n\n Objective-C \n\n @property (readwrite, copy, atomic, nullable)\n ../Type-Definitions.html#/c:GADNativeCustomTemplateAd.h@T@GADNativeAdCustomClickHandler customClickHandler;\n\n- `\n ``\n ``\n `\n\n ### [-imageForKey:](#/c:objc(cs)GADNativeCustomTemplateAd(im)imageForKey:)\n\n `\n ` \n Returns the native ad image corresponding to the specified key or nil if the image is not\n available. \n\n #### Declaration\n\n Objective-C \n\n - (nullable ../Classes/GADNativeAdImage.html *)imageForKey:(nonnull NSString *)key;\n\n- `\n ``\n ``\n `\n\n ### [-stringForKey:](#/c:objc(cs)GADNativeCustomTemplateAd(im)stringForKey:)\n\n `\n ` \n Returns the string corresponding to the specified key or nil if the string is not available. \n\n #### Declaration\n\n Objective-C \n\n - (nullable NSString *)stringForKey:(nonnull NSString *)key;\n\n- `\n ``\n ``\n `\n\n ### [-performClickOnAssetWithKey:](#/c:objc(cs)GADNativeCustomTemplateAd(im)performClickOnAssetWithKey:)\n\n `\n ` \n Call when the user clicks on the ad. Provide the asset key that best matches the asset the user\n interacted with. If this ad is configured with a custom click action, ensure the receiver's\n customClickHandler property is set before calling this method. \n\n #### Declaration\n\n Objective-C \n\n - (void)performClickOnAssetWithKey:(nonnull NSString *)assetKey;\n\n- `\n ``\n ``\n `\n\n ### [-recordImpression](#/c:objc(cs)GADNativeCustomTemplateAd(im)recordImpression)\n\n `\n ` \n Call when the ad is displayed on screen to the user. Can be called multiple times. Only the\n first impression is recorded. \n\n #### Declaration\n\n Objective-C \n\n - (void)recordImpression;\n\n- `\n ``\n ``\n `\n\n ### [-performClickOnAssetWithKey:customClickHandler:](#/c:objc(cs)GADNativeCustomTemplateAd(im)performClickOnAssetWithKey:customClickHandler:)\n\n `\n ` \n Call when the user clicks on the ad. Provide the asset key that best matches the asset the user\n interacted with. Provide \\|customClickHandler\\| only if this template is configured with a custom\n click action, otherwise pass in nil. If a block is provided, the ad's built-in click actions are\n ignored and \\|customClickHandler\\| is executed after recording the click.\n\n This method is deprecated. See performClickOnAssetWithKey: API. \n\n #### Declaration\n\n Objective-C \n\n - (void)performClickOnAssetWithKey:(nonnull NSString *)assetKey\n customClickHandler:\n (nullable dispatch_block_t)customClickHandler;"]]