Constants
The following constants are available globally.
-
Add this constant to the testDevices property’s array to receive test ads on the simulator.
Declaration
Swift
let kDFPSimulatorID: AnyObject
-
Use with GADAdLoader to request native app install ads. To receive ads, the ad loader’s delegate must conform to the GADNativeAppInstallAdLoaderDelegate protocol. See GADNativeAppInstallAd.h.
See GADNativeAdImageAdLoaderOptions.h for ad loader image options.
Declaration
Swift
static let nativeAppInstall: GADAdLoaderAdType
-
Use with GADAdLoader to request native content ads. To receive ads, the ad loader’s delegate must conform to the GADNativeContentAdLoaderDelegate protocol. See GADNativeContentAd.h.
See GADNativeAdImageAdLoaderOptions.h for ad loader image options.
Declaration
Swift
static let nativeContent: GADAdLoaderAdType
-
Use with GADAdLoader to request native custom template ads. To receive ads, the ad loader’s delegate must conform to the GADNativeCustomTemplateAdLoaderDelegate protocol. See GADNativeCustomTemplateAd.h.
Declaration
Swift
static let nativeCustomTemplate: GADAdLoaderAdType
-
Use with GADAdLoader to request Google Ad Manager banner ads. To receive ads, the ad loader’s delegate must conform to the DFPBannerAdLoaderDelegate protocol. See DFPBannerView.h.
Declaration
Swift
static let dfpBanner: GADAdLoaderAdType
-
Use with GADAdLoader to request native ads. To receive ads, the ad loader’s delegate must conform to the GADUnifiedNativeAdLoaderDelegate protocol. See GADUnifiedNativeAd.h.
Declaration
Swift
static let unifiedNative: GADAdLoaderAdType
-
iPhone and iPod Touch ad size. Typically 320x50.
Declaration
Swift
let kGADAdSizeBanner: GADAdSize
-
Taller version of kGADAdSizeBanner. Typically 320x100.
Declaration
Swift
let kGADAdSizeLargeBanner: GADAdSize
-
Medium Rectangle size for the iPad (especially in a UISplitView’s left pane). Typically 300x250.
Declaration
Swift
let kGADAdSizeMediumRectangle: GADAdSize
-
Full Banner size for the iPad (especially in a UIPopoverController or in UIModalPresentationFormSheet). Typically 468x60.
Declaration
Swift
let kGADAdSizeFullBanner: GADAdSize
-
Leaderboard size for the iPad. Typically 728x90.
Declaration
Swift
let kGADAdSizeLeaderboard: GADAdSize
-
Skyscraper size for the iPad. Mediation only. AdMob/Google does not offer this size. Typically 120x600.
Declaration
Swift
let kGADAdSizeSkyscraper: GADAdSize
-
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.
Declaration
Swift
let kGADAdSizeSmartBannerPortrait: GADAdSize
-
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.
Declaration
Swift
let kGADAdSizeSmartBannerLandscape: GADAdSize
-
An ad size that spans the full width of its container, with a height dynamically determined by the ad.
Declaration
Swift
let kGADAdSizeFluid: GADAdSize
-
Invalid ad size marker.
Declaration
Swift
let kGADAdSizeInvalid: GADAdSize
-
Key for getting the server parameter configured in AdMob when mediating to a custom event adapter. Example: NSString *serverParameter = connector.credentials[GADCustomEventParametersServer].
Declaration
Swift
let GADCustomEventParametersServer: String
-
Undocumented
Declaration
Swift
static let headlineAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let callToActionAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let iconAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let bodyAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let storeAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let priceAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let imageAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let starRatingAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let attributionIconAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let attributionTextAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let mediaViewAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let adChoicesViewAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let backgroundAsset: GADNativeAppInstallAssetID
-
Undocumented
Declaration
Swift
static let headlineAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let bodyAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let callToActionAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let advertiserAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let imageAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let logoAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let attributionIconAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let attributionTextAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let mediaViewAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let choicesViewAsset: GADNativeContentAdAssetID
-
Undocumented
Declaration
Swift
static let backgroundAsset: GADNativeContentAdAssetID
-
Asset key for the GADMediaView asset view.
Declaration
Swift
let GADNativeCustomTemplateAdMediaViewKey: String
-
Add this constant to the testDevices property’s array to receive test ads on the simulator.
Declaration
Swift
let kGADSimulatorID: AnyObject
-
Rating for content suitable for general audiences, including families.
Declaration
Swift
static let general: GADMaxAdContentRating
-
Rating for content suitable for most audiences with parental guidance.
Declaration
Swift
static let parentalGuidance: GADMaxAdContentRating
-
Rating for content suitable for teen and older audiences.
Declaration
Swift
static let teen: GADMaxAdContentRating
-
Rating for content suitable only for mature audiences.
Declaration
Swift
static let matureAudience: GADMaxAdContentRating
-
Google AdMob Ads error domain.
Declaration
Swift
let kGADErrorDomain: String
-
Undocumented
Declaration
Swift
static let headlineAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let callToActionAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let iconAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let bodyAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let storeAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let priceAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let imageAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let starRatingAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let advertiserAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let mediaViewAsset: GADUnifiedNativeAssetIdentifier
-
Undocumented
Declaration
Swift
static let adChoicesViewAsset: GADUnifiedNativeAssetIdentifier
-
Project version string for GoogleMobileAds.