GADUnifiedNativeAd

class GADUnifiedNativeAd : NSObject

Unified native ad. To request this ad type, pass kGADAdLoaderAdTypeUnifiedNative (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the GADUnifiedNativeAdLoaderDelegate protocol.

  • Headline

    Declaration

    Swift

    var headline: String? { get }
  • Text that encourages user to take some action with the ad. For example Install.

    Declaration

    Swift

    var callToAction: String? { get }
  • Icon image.

    Declaration

    Swift

    var icon: GADNativeAdImage? { get }
  • Description.

    Declaration

    Swift

    var body: String? { get }
  • Array of GADNativeAdImage objects.

    Declaration

    Swift

    var images: [GADNativeAdImage]? { get }
  • App store rating (0 to 5).

    Declaration

    Swift

    @NSCopying var starRating: NSDecimalNumber? { get }
  • The app store name. For example, App Store.

    Declaration

    Swift

    var store: String? { get }
  • String representation of the app’s price.

    Declaration

    Swift

    var price: String? { get }
  • Identifies the advertiser. For example, the advertiser’s name or visible URL.

    Declaration

    Swift

    var advertiser: String? { get }
  • Video controller for controlling video playback in GADUnifiedNativeAdView’s mediaView.

    Declaration

    Swift

    var videoController: GADVideoController? { get }
  • Optional delegate to receive state change notifications.

    Declaration

    Swift

    weak var delegate: GADUnifiedNativeAdDelegate? { get set }
  • Reference to a root view controller that is used by the ad to present full screen content after the user interacts with the ad. The root view controller is most commonly the view controller displaying the ad.

    Declaration

    Swift

    weak var rootViewController: UIViewController? { get set }
  • Dictionary of assets which aren’t processed by the receiver.

    Declaration

    Swift

    var extraAssets: [String : Any]? { get }
  • The ad network class name that fetched the current ad. For both standard and mediated Google AdMob ads, this method returns @GADMAdapterGoogleAdMobAds. For ads fetched via mediation custom events, this method returns @GADMAdapterCustomEvents.

    Declaration

    Swift

    var adNetworkClassName: String? { get }
  • Indicates whether custom Mute This Ad is available for the native ad.

    Declaration

    Swift

    var isCustomMuteThisAdAvailable: Bool { get }
  • An array of Mute This Ad reasons used to render customized mute ad survey. Use this array to implement your own Mute This Ad feature only when customMuteThisAdAvailable is YES.

    Declaration

    Swift

    var muteThisAdReasons: [GADMuteThisAdReason]? { get }
  • Media content. Set the associated media view’s mediaContent property to this object to display this content.

    Declaration

    Swift

    var mediaContent: GADMediaContent { get }
  • Registers ad view, clickable asset views, and nonclickable asset views with this native ad. Media view shouldn’t be registered as clickable.

    Declaration

    Swift

    func register(_ adView: