GoogleMobileAds Framework Reference

Constants

The following constants are available globally.

  • Use with GADAdLoader to request native custom template ads. To receive ads, the ad loader’s delegate must conform to the GADCustomNativeAdLoaderDelegate protocol. See GADCustomNativeAd.h.

    Declaration

    Swift

    static let customNative: GADAdLoaderAdType

    Objective-C

    extern GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeCustomNative
  • Use with GADAdLoader to request Google Ad Manager banner ads. To receive ads, the ad loader’s delegate must conform to the GAMBannerAdLoaderDelegate protocol. See GAMBannerView.h.

    Declaration

    Swift

    static let gamBanner: GADAdLoaderAdType

    Objective-C

    extern GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeGAMBanner
  • Use with GADAdLoader to request native ads. To receive ads, the ad loader’s delegate must conform to the GADNativeAdLoaderDelegate protocol. See GADNativeAd.h.

    Declaration

    Swift

    static let native: GADAdLoaderAdType

    Objective-C

    extern GADAdLoaderAdType _Nonnull const kGADAdLoaderAdTypeNative
  • iPhone and iPod Touch ad size. Typically 320x50.

    Declaration

    Swift

    let kGADAdSizeBanner: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeBanner
  • Taller version of kGADAdSizeBanner. Typically 320x100.

    Declaration

    Swift

    let kGADAdSizeLargeBanner: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeLargeBanner
  • Medium Rectangle size for the iPad (especially in a UISplitView’s left pane). Typically 300x250.

    Declaration

    Swift

    let kGADAdSizeMediumRectangle: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeMediumRectangle
  • Full Banner size for the iPad (especially in a UIPopoverController or in UIModalPresentationFormSheet). Typically 468x60.

    Declaration

    Swift

    let kGADAdSizeFullBanner: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeFullBanner
  • Leaderboard size for the iPad. Typically 728x90.

    Declaration

    Swift

    let kGADAdSizeLeaderboard: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeLeaderboard
  • Skyscraper size for the iPad. Mediation only. AdMob/Google does not offer this size. Typically 120x600.

    Declaration

    Swift

    let kGADAdSizeSkyscraper: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeSkyscraper
  • An ad size that spans the full width of its container, with a height dynamically determined by the ad.

    Declaration

    Swift

    let kGADAdSizeFluid: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeFluid
  • Invalid ad size marker.

    Declaration

    Swift

    let kGADAdSizeInvalid: GADAdSize

    Objective-C

    extern const GADAdSize kGADAdSizeInvalid