GADNativeContentAdView

@interface GADNativeContentAdView

Base class for content ad views. Your content ad view must be a subclass of this class and must call superclass methods for all overriden methods.

  • This property must point to the native content ad object rendered by this ad view.

    Declaration

    Swift

    var nativeContentAd: GADNativeContentAd! { get set }

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property(nonatomic, weak, GAD_NULLABLE) IBOutlet 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 nativeContentAd, otherwise AdChoices will be rendered in the publisher’s preferredAdChoicesPosition as defined in GADNativeAdViewAdOptions.

    Declaration

    Objective-C

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