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. DeclarationSwift static let customNative: AdLoaderAdTypeObjective-C extern GADAdLoaderAdType _Nonnull const GADAdLoaderAdTypeCustomNative
- 
                  
                  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. DeclarationSwift static let adManagerBanner: AdLoaderAdTypeObjective-C extern NS_SWIFT_NAME GADAdLoaderAdType GADAdLoaderAdTypeGAMBanner
- 
                  
                  Use with GADAdLoader to request native ads. To receive ads, the ad loader’s delegate must conform to the GADNativeAdLoaderDelegate protocol. See GADNativeAd.h. DeclarationSwift static let native: AdLoaderAdTypeObjective-C extern GADAdLoaderAdType _Nonnull const GADAdLoaderAdTypeNative
- 
                  
                  iPhone and iPod Touch ad size. Typically 320x50. 
- 
                  
                  Taller version of GADAdSizeBanner. Typically 320x100. DeclarationSwift let AdSizeLargeBanner: AdSizeObjective-C extern const GADAdSize GADAdSizeLargeBanner
- 
                  
                  Medium Rectangle size for the iPad (especially in a UISplitView’s left pane). Typically 300x250. DeclarationSwift let AdSizeMediumRectangle: AdSizeObjective-C extern const GADAdSize GADAdSizeMediumRectangle
- 
                  
                  Full Banner size for the iPad (especially in a UIPopoverController or in UIModalPresentationFormSheet). Typically 468x60. DeclarationSwift let AdSizeFullBanner: AdSizeObjective-C extern const GADAdSize GADAdSizeFullBanner
- 
                  
                  Leaderboard size for the iPad. Typically 728x90. DeclarationSwift let AdSizeLeaderboard: AdSizeObjective-C extern const GADAdSize GADAdSizeLeaderboard
- 
                  
                  Skyscraper size for the iPad. Mediation only. AdMob/Google does not offer this size. Typically 120x600. DeclarationSwift let AdSizeSkyscraper: AdSizeObjective-C extern const GADAdSize GADAdSizeSkyscraper
- 
                  
                  An ad size that spans the full width of its container, with a height dynamically determined by the ad. 
- 
                  
                  Invalid ad size marker. 
- 
                  
                  Deprecated Use GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth. An ad size that spans the full width of the application in portrait orientation. The height is typically 50 points on an iPhone/iPod UI, and 90 points tall on an iPad UI. DeclarationSwift let kGADAdSizeSmartBannerPortrait: AdSizeObjective-C extern const GADAdSize kGADAdSizeSmartBannerPortrait
- 
                  
                  Deprecated Use GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth An ad size that spans the full width of the application in landscape orientation. The height is typically 32 points on an iPhone/iPod UI, and 90 points tall on an iPad UI. DeclarationSwift let kGADAdSizeSmartBannerLandscape: AdSizeObjective-C extern const GADAdSize kGADAdSizeSmartBannerLandscape
- 
                  
                  Key for getting the server parameter configured in AdMob when mediating to a custom event adapter. Example: NSString *serverParameter = connector.credentials[GADCustomEventParametersServer]. DeclarationSwift let GADCustomEventParametersServer: StringObjective-C extern NSString *const _Nonnull GADCustomEventParametersServer
- 
                  
                  Asset key for the GADMediaView asset view. DeclarationSwift let GADCustomNativeAdMediaViewKey: StringObjective-C extern NSString *const _Nonnull GADCustomNativeAdMediaViewKey
- 
                  
                  Undocumented DeclarationSwift static let headlineAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeHeadlineAsset
- 
                  
                  Undocumented DeclarationSwift static let callToActionAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeCallToActionAsset
- 
                  
                  Undocumented DeclarationSwift static let iconAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeIconAsset
- 
                  
                  Undocumented DeclarationSwift static let bodyAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeBodyAsset
- 
                  
                  Undocumented DeclarationSwift static let storeAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeStoreAsset
- 
                  
                  Undocumented DeclarationSwift static let priceAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativePriceAsset
- 
                  
                  Undocumented DeclarationSwift static let imageAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeImageAsset
- 
                  
                  Undocumented DeclarationSwift static let starRatingAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeStarRatingAsset
- 
                  
                  Undocumented DeclarationSwift static let advertiserAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeAdvertiserAsset
- 
                  
                  Undocumented DeclarationSwift static let mediaViewAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeMediaViewAsset
- 
                  
                  Undocumented DeclarationSwift static let adChoicesViewAsset: GADNativeAssetIdentifierObjective-C FOUNDATION_EXPORT GADNativeAssetIdentifier _Nonnull const GADNativeAdChoicesViewAsset
- 
                  
                  Rating for content suitable for general audiences, including families. DeclarationSwift static let general: GADMaxAdContentRatingObjective-C extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingGeneral
- 
                  
                  Rating for content suitable for most audiences with parental guidance. DeclarationSwift static let parentalGuidance: GADMaxAdContentRatingObjective-C extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingParentalGuidance
- 
                  
                  Rating for content suitable for teen and older audiences. DeclarationSwift static let teen: GADMaxAdContentRatingObjective-C extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingTeen
- 
                  
                  Rating for content suitable only for mature audiences. DeclarationSwift static let matureAudience: GADMaxAdContentRatingObjective-C extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingMatureAudience
- 
                  
                  Google AdMob Ads error domain. DeclarationSwift let GADErrorDomain: StringObjective-C extern NSErrorDomain _Nonnull const GADErrorDomain
- 
                  
                  Ad network class name for ads returned from Google’s ad network. DeclarationSwift let GADGoogleAdNetworkClassName: StringObjective-C extern NSString *const _Nonnull GADGoogleAdNetworkClassName
- 
                  
                  Ad network class name for custom event ads. DeclarationSwift let GADCustomEventAdNetworkClassName: StringObjective-C extern NSString *const _Nonnull GADCustomEventAdNetworkClassName
- 
                  
                  Key into NSError.userInfo mapping to a GADResponseInfo object. When ads fail to load, errors returned contain an instance of GADResponseInfo. DeclarationSwift let GADErrorUserInfoKeyResponseInfo: StringObjective-C extern NSString *_Nonnull GADErrorUserInfoKeyResponseInfo
- 
                  
                  Project version string for GoogleMobileAds. DeclarationSwift let GoogleMobileAdsVersion: <<error type>>Objective-C extern const unsigned char GoogleMobileAdsVersionString[]