GADCustomNativeAd
@interface GADCustomNativeAd : NSObjectCustom native ad. To request this ad type, you need to pass GADAdLoaderAdTypeCustomNative (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADCustomNativeAdLoaderDelegate protocol.
- 
                  
                  The ad’s format ID. DeclarationSwift var formatID: String { get }Objective-C @property (nonatomic, readonly, nonnull) NSString *formatID;
- 
                  
                  Array of available asset keys. DeclarationSwift var availableAssetKeys: [String] { get }Objective-C @property (nonatomic, readonly, nonnull) NSArray<NSString *> *availableAssetKeys;
- 
                  
                  Custom click handler. Set this property only if this 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. DeclarationSwift var customClickHandler: GADNativeAdCustomClickHandler? { get set }Objective-C @property (copy, nullable) GADNativeAdCustomClickHandler customClickHandler;
- 
                  
                  The display ad measurement associated with this ad. DeclarationSwift var displayAdMeasurement: DisplayAdMeasurement? { get }Objective-C @property (nonatomic, readonly, nullable) GADDisplayAdMeasurement *displayAdMeasurement;
- 
                  
                  Media content. DeclarationSwift var mediaContent: MediaContent { get }Objective-C @property (nonatomic, readonly, nonnull) GADMediaContent *mediaContent;
- 
                  
                  Optional delegate to receive state change notifications. DeclarationSwift weak var delegate: (any GADCustomNativeAdDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<GADCustomNativeAdDelegate> delegate;
- 
                  
                  Reference to a root view controller that is used by the ad to present full screen content after the user interacts with the ad. The root view controller is most commonly the view controller displaying the ad. DeclarationSwift weak var rootViewController: UIViewController? { get set }Objective-C @property (nonatomic, weak, nullable) UIViewController *rootViewController;
- 
                  
                  Information about the ad response that returned the ad. DeclarationSwift var responseInfo: ResponseInfo { get }Objective-C @property (nonatomic, readonly, nonnull) GADResponseInfo *responseInfo;
- 
                  
                  Returns the native ad image corresponding to the specified key or nil if the image is not available. DeclarationSwift func image(forKey key: String) -> NativeAdImage?Objective-C - (nullable GADNativeAdImage *)imageForKey:(nonnull NSString *)key;
- 
                  
                  Returns the string corresponding to the specified key or nil if the string is not available. DeclarationSwift func string(forKey key: String) -> String?Objective-C - (nullable NSString *)stringForKey:(nonnull NSString *)key;
- 
                  
                  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. DeclarationSwift func performClickOnAsset(withKey assetKey: String)Objective-C - (void)performClickOnAssetWithKey:(nonnull NSString *)assetKey;
- 
                  
                  Call when the ad is displayed on screen to the user. Can be called multiple times. Only the first impression is recorded. DeclarationSwift func recordImpression()Objective-C - (void)recordImpression;