Weak reference to your ad view’s AdChoices view. Must set adChoicesView before setting
nativeAd, otherwise AdChoices will be rendered according to the preferredAdChoicesPosition
defined in GADNativeAdViewAdOptions.
Declaration
Swift
@IBOutlet weak var adChoicesView: AdChoicesView? { get set }
[[["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 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADNativeAdView\u003c/code\u003e is the base class for creating native ad views, requiring subclassing and calling superclass methods.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to link the ad view with the native ad object and various asset views like headline, icon, and body.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can connect UI elements to specific ad assets using properties like \u003ccode\u003eheadlineView\u003c/code\u003e, \u003ccode\u003eiconView\u003c/code\u003e, and \u003ccode\u003ecallToActionView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emediaView\u003c/code\u003e property allows integration with \u003ccode\u003eGADMediaView\u003c/code\u003e for displaying media content within the ad.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eadChoicesView\u003c/code\u003e should be set before \u003ccode\u003enativeAd\u003c/code\u003e for custom positioning, otherwise default positioning from \u003ccode\u003eGADNativeAdViewAdOptions\u003c/code\u003e is used.\u003c/p\u003e\n"]]],["GADNativeAdView serves as the base class for native ad views, requiring subclasses to override and call superclass methods. It manages the native ad object via the `nativeAd` property. It utilizes weak references to various asset views like `headlineView`, `callToActionView`, `iconView`, `bodyView`, `storeView`, `priceView`, `imageView`, `starRatingView`, `advertiserView`, `mediaView`, and `adChoicesView` for displaying different parts of the ad content. The `adChoicesView` must be set before the `nativeAd`.\n"],null,["GADNativeAdView \n\n\n @interface GADNativeAdView : UIView\n\nBase class for native ad views. Your native ad view must be a subclass of this class and must\ncall superclass methods for all overridden methods.\n- `\n ``\n ``\n `\n\n [nativeAd](#/c:objc(cs)GADNativeAdView(py)nativeAd)`\n ` \n This property must point to the native ad object rendered by this ad view. \n\n Declaration \n Swift \n\n var nativeAd: NativeAd? { get set }\n\n Objective-C \n\n @property (nonatomic, strong, nullable) ../Classes/GADNativeAd.html *nativeAd;\n\n- `\n ``\n ``\n `\n\n [headlineView](#/c:objc(cs)GADNativeAdView(py)headlineView)`\n ` \n Weak reference to your ad view's headline asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var headlineView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *headlineView;\n\n- `\n ``\n ``\n `\n\n [callToActionView](#/c:objc(cs)GADNativeAdView(py)callToActionView)`\n ` \n Weak reference to your ad view's call to action asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var callToActionView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *callToActionView;\n\n- `\n ``\n ``\n `\n\n [iconView](#/c:objc(cs)GADNativeAdView(py)iconView)`\n ` \n Weak reference to your ad view's icon asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var iconView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *iconView;\n\n- `\n ``\n ``\n `\n\n [bodyView](#/c:objc(cs)GADNativeAdView(py)bodyView)`\n ` \n Weak reference to your ad view's body asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var bodyView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *bodyView;\n\n- `\n ``\n ``\n `\n\n [storeView](#/c:objc(cs)GADNativeAdView(py)storeView)`\n ` \n Weak reference to your ad view's store asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var storeView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *storeView;\n\n- `\n ``\n ``\n `\n\n [priceView](#/c:objc(cs)GADNativeAdView(py)priceView)`\n ` \n Weak reference to your ad view's price asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var priceView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *priceView;\n\n- `\n ``\n ``\n `\n\n [imageView](#/c:objc(cs)GADNativeAdView(py)imageView)`\n ` \n Weak reference to your ad view's image asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var imageView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *imageView;\n\n- `\n ``\n ``\n `\n\n [starRatingView](#/c:objc(cs)GADNativeAdView(py)starRatingView)`\n ` \n Weak reference to your ad view's star rating asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var starRatingView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *starRatingView;\n\n- `\n ``\n ``\n `\n\n [advertiserView](#/c:objc(cs)GADNativeAdView(py)advertiserView)`\n ` \n Weak reference to your ad view's advertiser asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var advertiserView: UIView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) UIView *advertiserView;\n\n- `\n ``\n ``\n `\n\n [mediaView](#/c:objc(cs)GADNativeAdView(py)mediaView)`\n ` \n Weak reference to your ad view's media asset view. \n\n Declaration \n Swift \n\n @IBOutlet weak var mediaView: MediaView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) ../Classes/GADMediaView.html *mediaView;\n\n- `\n ``\n ``\n `\n\n [adChoicesView](#/c:objc(cs)GADNativeAdView(py)adChoicesView)`\n ` \n Weak reference to your ad view's AdChoices view. Must set adChoicesView before setting\n nativeAd, otherwise AdChoices will be rendered according to the preferredAdChoicesPosition\n defined in GADNativeAdViewAdOptions. \n\n Declaration \n Swift \n\n @IBOutlet weak var adChoicesView: AdChoicesView? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) ../Classes.html#/c:objc(cs)GADAdChoicesView *adChoicesView;"]]