GoogleMobileAds Framework Reference

GADNativeAd

classGADNativeAd: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 afterthe user interacts with the ad. The root view controller is most commonly the view controllerdisplaying the ad.

    Declaration

    Swift

    weakvarrootViewController:UIViewController?{getset}
  • Dictionary of assets which aren’t processed by the receiver.

    Declaration

    Swift

    varextraAssets:[AnyHashable:Any]?{get}
  • The ad network class name that fetched the current ad. For both standard and mediated GoogleAdMob ads, this method returns @GADMAdapterGoogleAdMobAds. For ads fetched via mediationcustom events, this method returns @GADMAdapterCustomEvents.

    Declaration

    Swift

    varadNetworkClassName:String?{get}

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

Last updated 2021-03-03 UTC.