GADNativeAd
@interface GADNativeAd : NSObjectNative ad. To request this ad type, pass GADAdLoaderAdTypeNative (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADNativeAdLoaderDelegate protocol.
- 
                  
                  Headline. DeclarationSwift var headline: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *headline;
- 
                  
                  Text that encourages user to take some action with the ad. For example “Install”. DeclarationSwift var callToAction: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *callToAction;
- 
                  
                  Icon image. DeclarationSwift var icon: NativeAdImage? { get }Objective-C @property (nonatomic, strong, readonly, nullable) GADNativeAdImage *icon;
- 
                  
                  Description. DeclarationSwift var body: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *body;
- 
                  
                  Array of GADNativeAdImage objects. DeclarationSwift var images: [NativeAdImage]? { get }Objective-C @property (nonatomic, strong, readonly, nullable) NSArray<GADNativeAdImage *> *images;
- 
                  
                  App store rating (0 to 5). DeclarationSwift @NSCopying var starRating: NSDecimalNumber? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSDecimalNumber *starRating;
- 
                  
                  The app store name. For example, “App Store”. DeclarationSwift var store: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *store;
- 
                  
                  String representation of the app’s price. DeclarationSwift var price: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *price;
- 
                  
                  Identifies the advertiser. For example, the advertiser’s name or visible URL. DeclarationSwift var advertiser: String? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSString *advertiser;
- 
                  
                  Media content. Set the associated media view’s mediaContent property to this object to display this 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 NativeAdDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<GADNativeAdDelegate> 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;
- 
                  
                  Dictionary of assets which aren’t processed by the receiver. DeclarationSwift var extraAssets: [String : Any]? { get }Objective-C @property (nonatomic, copy, readonly, nullable) NSDictionary<NSString *, id> *extraAssets;
- 
                  
                  Information about the ad response that returned the ad. DeclarationSwift var responseInfo: ResponseInfo { get }Objective-C @property (nonatomic, readonly, nonnull) GADResponseInfo *responseInfo;
- 
                  
                  Called when the ad is estimated to have earned money. Available for allowlisted accounts only. DeclarationSwift var paidEventHandler: GADPaidEventHandler? { get set }Objective-C @property (nonatomic, copy, nullable) GADPaidEventHandler paidEventHandler;
- 
                  
                  An identifier for a placement in reporting. This property must be set prior to associating the ad with a GADNativeAdView. DeclarationSwift var placementID: Int64 { get set }Objective-C @property (nonatomic) int64_t placementID;
- 
                  
                  Indicates whether custom Mute This Ad is available for the native ad. DeclarationSwift var isCustomMuteThisAdAvailable: Bool { get }Objective-C @property (nonatomic, readonly, getter=isCustomMuteThisAdAvailable) BOOL customMuteThisAdAvailable;
- 
                  
                  An array of Mute This Ad reasons used to render customized mute ad survey. Use this array to implement your own Mute This Ad feature only when customMuteThisAdAvailable is YES. DeclarationSwift var muteThisAdReasons: [MuteThisAdReason]? { get }Objective-C @property (nonatomic, readonly, nullable) NSArray<GADMuteThisAdReason *> *muteThisAdReasons;
- 
                  
                  Registers ad view, clickable asset views, and nonclickable asset views with this native ad. Media view shouldn’t be registered as clickable. DeclarationSwift func register(_ adView: UIView, clickableAssetViews: [GADNativeAssetIdentifier : UIView], nonclickableAssetViews: [GADNativeAssetIdentifier : UIView])Objective-C - (void)registerAdView:(nonnull UIView *)adView clickableAssetViews: (nonnull NSDictionary<GADNativeAssetIdentifier, UIView *> *) clickableAssetViews nonclickableAssetViews: (nonnull NSDictionary<GADNativeAssetIdentifier, UIView *> *) nonclickableAssetViews;ParametersclickableAssetViewsDictionary 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. DeclarationSwift func unregisterAdView()Objective-C - (void)unregisterAdView;
- 
                  
                  Reports the mute event with the mute reason selected by user. Use nil if no reason was selected. Call this method only if customMuteThisAdAvailable is YES. DeclarationSwift func muteThisAd(with reason: MuteThisAdReason?)Objective-C - (void)muteThisAdWithReason:(nullable GADMuteThisAdReason *)reason;
- 
                  
                  Unconfirmed click delegate. DeclarationSwift weak var unconfirmedClickDelegate: (any NativeAdUnconfirmedClickDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<GADNativeAdUnconfirmedClickDelegate> unconfirmedClickDelegate;
- 
                  
                  Registers a view that will confirm the click. DeclarationSwift func registerClickConfirmingView(_ view: UIView?)Objective-C - (void)registerClickConfirmingView:(nullable UIView *)view;
- 
                  
                  Cancels the unconfirmed click. Call this method when the user fails to confirm the click. Calling this method causes the SDK to stop tracking clicks on the registered click confirming view and invokes the -nativeAdDidCancelUnconfirmedClick: delegate method. If no unconfirmed click is in progress, this method has no effect. DeclarationSwift func cancelUnconfirmedClick()Objective-C - (void)cancelUnconfirmedClick;
- 
                  
                  Indicates whether the custom click gestures feature can be used. DeclarationSwift var isCustomClickGestureEnabled: Bool { get }Objective-C @property (nonatomic, readonly, getter=isCustomClickGestureEnabled) BOOL customClickGestureEnabled;
- 
                  
                  Enables custom click gestures. Must be called before the ad is associated with an ad view. Available for allowlisted accounts only. DeclarationSwift func enableCustomClickGestures()Objective-C - (void)enableCustomClickGestures;
- 
                  
                  Records a click triggered by a custom click gesture. DeclarationSwift func recordCustomClickGesture()Objective-C - (void)recordCustomClickGesture;