[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/swift/googlemobileads/api/reference/Classes/GADNativeAd [Back]  [Original]

GoogleMobileAds Framework Reference  |  Firebase Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback

GoogleMobileAds Framework Reference Stay organized with collections Save and categorize content based on your preferences.

GADNativeAd

class GADNativeAd : NSObject

Native ad base class. All native ad types are subclasses of this class.

  • Optional delegate to receive state change notifications.

  • 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: [AnyHashable : 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 }
Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-03-03 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-03-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page