GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADUnifiedNativeAdView
class GADUnifiedNativeAdView : UIView
Base class for native ad views. Your native ad view must be a subclass of this class and must
call superclass methods for all overridden methods.
-
This property must point to the unified native ad object rendered by this ad view.
-
Weak reference to your ad view’s headline asset view.
Declaration
Swift
@IBOutlet weak var headlineView: UIView? { get set }
-
Weak reference to your ad view’s call to action asset view.
Declaration
Swift
@IBOutlet weak var callToActionView: UIView? { get set }
-
Weak reference to your ad view’s icon asset view.
Declaration
Swift
@IBOutlet weak var iconView: UIView? { get set }
-
Weak reference to your ad view’s body asset view.
Declaration
Swift
@IBOutlet weak var bodyView: UIView? { get set }
-
Weak reference to your ad view’s store asset view.
Declaration
Swift
@IBOutlet weak var storeView: UIView? { get set }
-
Weak reference to your ad view’s price asset view.
Declaration
Swift
@IBOutlet weak var priceView: UIView? { get set }
-
Weak reference to your ad view’s image asset view.
Declaration
Swift
@IBOutlet weak var imageView: UIView? { get set }
-
Weak reference to your ad view’s star rating asset view.
Declaration
Swift
@IBOutlet weak var starRatingView: UIView? { get set }
-
Weak reference to your ad view’s advertiser asset view.
Declaration
Swift
@IBOutlet weak var advertiserView: UIView? { get set }
-
Weak reference to your ad view’s media asset view.
Declaration
Swift
@IBOutlet weak var mediaView: GADMediaView? { get set }
-
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-03-03 UTC.
[null,null,["Last updated 2021-03-03 UTC."],[],[],null,["GADUnifiedNativeAdView \n\n class GADUnifiedNativeAdView : 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)GADUnifiedNativeAdView(py)nativeAd)`\n ` \n This property must point to the unified native ad object rendered by this ad view. \n\n Declaration \n Swift \n\n var nativeAd: ../Classes/GADUnifiedNativeAd.html? { get set }\n\n- `\n ``\n ``\n `\n\n [headlineView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [callToActionView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [iconView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [bodyView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [storeView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [priceView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [imageView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [starRatingView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [advertiserView](#/c:objc(cs)GADUnifiedNativeAdView(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- `\n ``\n ``\n `\n\n [mediaView](#/c:objc(cs)GADUnifiedNativeAdView(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: ../Classes/GADMediaView.html? { get set }\n\n- `\n ``\n ``\n `\n\n [adChoicesView](#/c:objc(cs)GADUnifiedNativeAdView(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: ../Classes.html#/c:objc(cs)GADAdChoicesView? { get set }"]]