Classes

The following classes are available globally.

  • The view that displays Ad Manager banner ads.

    To request this ad type using GADAdLoader, you need to pass kGADAdLoaderAdTypeDFPBanner (see GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you request this ad type, your delegate must conform to the DFPBannerAdLoaderDelegate protocol.

    Declaration

    Swift

    class DFPBannerView : GADBannerView
  • Custom rendered ad. Your application renders the ad.

    Declaration

    Swift

    class DFPCustomRenderedAd : NSObject
  • Google Ad Manager interstitial ad, a full-screen advertisement shown at natural transition points in your application such as between game levels or news stories.

    Declaration

    Swift

    class DFPInterstitial : GADInterstitial
  • Specifies optional parameters for ad requests.

    Declaration

    Swift

    class DFPRequest : GADRequest
  • Displays AdChoices content.

    If a GADAdChoicesView is set on GADNativeAppInstallAdView or GADNativeContentAdView prior to calling -setNativeAppInstallAd: or -setNativeContentAd:, AdChoices content will render inside the GADAdChoicesView. By default, AdChoices is placed in the top right corner of GADNativeAppInstallAdView and GADNativeContentAdView.

    Declaration

    Swift

    class GADAdChoicesView : UIView
  • Ad loader options base class. See each ad type’s header for available GADAdLoaderOptions subclasses.

    Declaration

    Swift

    class GADAdLoaderOptions : NSObject
  • Loads ads. See GADAdLoaderAdTypes.h for available ad types.

    Declaration

    Swift

    class GADAdLoader : NSObject
  • Reward information for GADRewardBasedVideoAd ads.

    Declaration

    Swift

    class GADAdReward : NSObject
  • Provides audio and video notifications and configurations management.

    Don’t create an instance of this class and use the one available from GADMobileAds sharedInstace’s audioVideoManager.

    Declaration

    Swift

    class GADAudioVideoManager : NSObject
  • The view that displays banner ads. A minimum implementation to get an ad from within a UIViewController class is:

      // Create and setup the ad view, specifying the size and origin at {0, 0}.
      GADBannerView *adView = [[GADBannerView alloc] initWithAdSize:kGADAdSizeBanner];
      adView.rootViewController = self;
      adView.adUnitID = @ID created when registering your app;
      // Place the ad view onto the screen.
      [self.view addSubview:adView];
      // Request an ad without any additional targeting information.
      [adView loadRequest:[GADRequest request]];
      

    Declaration

    Swift

    class GADBannerView : UIView