GoogleMobileAds Framework Reference

GADUnifiedNativeAdView

@interface 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.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    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 according to the preferredAdChoicesPosition defined in GADNativeAdViewAdOptions.

    Declaration

    Objective-C

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