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 class 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 Swift \n\n var templateID: String { get }\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 Swift \n\n var availableAssetKeys: [String] { get }\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 Swift \n\n var videoController: ../Classes/GADVideoController.html { get }\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 Swift \n\n var mediaView: ../Classes/GADMediaView.html? { get }\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 Swift \n\n var customClickHandler: ../Type-Definitions.html#/c:GADNativeCustomTemplateAd.h@T@GADNativeAdCustomClickHandler? { get set }\n\n- `\n ``\n ``\n `\n\n ### [image(forKey:)](#/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 Swift \n\n func image(forKey key: String) -\u003e ../Classes/GADNativeAdImage.html?\n\n- `\n ``\n ``\n `\n\n ### [string(forKey:)](#/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 Swift \n\n func string(forKey key: String) -\u003e String?\n\n- `\n ``\n ``\n `\n\n ### [performClickOnAsset(withKey:)](#/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 Swift \n\n func performClickOnAsset(withKey assetKey: String)\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 Swift \n\n func recordImpression()\n\n- `\n ``\n ``\n `\n\n ### [performClickOnAsset(withKey: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 Swift \n\n func performClickOnAsset(withKey assetKey: String, customClickHandler: (() -\u003e Void)? = nil)"]]