GADNativeContentAdView

class 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 }
  • Weak reference to your ad view’s headline asset view.

    Declaration

    Swift

    var headlineView: UnsafeMutablePointer<Int32>? { get set }
  • Weak reference to your ad view’s body asset view.

    Declaration

    Swift

    var bodyView: UnsafeMutablePointer<Int32>? { get set }
  • Weak reference to your ad view’s image asset view.

    Declaration

    Swift

    var imageView: UnsafeMutablePointer<Int32>? { get set }
  • Weak reference to your ad view’s logo asset view.

    Declaration

    Swift

    var logoView: UnsafeMutablePointer<Int32>? { get set }
  • Weak reference to your ad view’s call to action asset view.

    Declaration

    Swift

    var callToActionView: UnsafeMutablePointer<Int32>? { get set }
  • Weak reference to your ad view’s advertiser asset view.

    Declaration

    Swift

    var advertiserView: UnsafeMutablePointer<Int32>? { 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 nativeContentAd, otherwise AdChoices will be rendered in the publisher’s preferredAdChoicesPosition as defined in GADNativeAdViewAdOptions.

    Declaration

    Swift

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