GADUnifiedNativeAdView

@interface GADUnifiedNativeAdView

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.

    Declaration

    Swift

    var nativeAd: GADUnifiedNativeAd? { get set }

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) GADUnifiedNativeAd *nativeAd;
  • Weak reference to your ad view’s headline asset view.

    Declaration

    Swift

    var headlineView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *headlineView
  • Weak reference to your ad view’s call to action asset view.

    Declaration

    Swift

    var callToActionView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *callToActionView
  • Weak reference to your ad view’s icon asset view.

    Declaration

    Swift

    var iconView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *iconView
  • Weak reference to your ad view’s body asset view.

    Declaration

    Swift

    var bodyView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *bodyView
  • Weak reference to your ad view’s store asset view.

    Declaration

    Swift

    var storeView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *storeView
  • Weak reference to your ad view’s price asset view.

    Declaration

    Swift

    var priceView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *priceView
  • Weak reference to your ad view’s image asset view.

    Declaration

    Swift

    var imageView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *imageView
  • Weak reference to your ad view’s star rating asset view.

    Declaration

    Swift

    var starRatingView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *starRatingView
  • Weak reference to your ad view’s advertiser asset view.

    Declaration

    Swift

    var advertiserView: UnsafeMutablePointer<Int32>? { get set }

    Objective-C

    @property(nonatomic, weak, nullable) IBOutlet UIView *advertiserView
  • Weak reference to your ad view’s media asset view.

    Declaration

    Swift

    @IBOutlet weak var mediaView: GADMediaView? { get set }

    Objective-C

    @property (readwrite, nonatomic, nullable) GADMediaView *mediaView;
  • Weak reference to your ad view’s AdChoices view. Must set adChoicesView before setting nativeAd, otherwise AdChoices will be rendered in the publisher’s preferredAdChoicesPosition as defined in GADNativeAdViewAdOptions.

    Declaration

    Swift

    @IBOutlet weak var adChoicesView: GADAdChoicesView? { get set }

    Objective-C

    @property (readwrite, nonatomic, nullable) GADAdChoicesView *adChoicesView;