Constants
The following constants are available globally.
-
Add this constant to the testDevices property’s array to receive test ads on the simulator.
Declaration
Objective-C
extern id _Nonnull const kDFPSimulatorID
-
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
Objective-C
extern const GADAdLoaderAdType _Nonnull kGADAdLoaderAdTypeNativeAppInstall
-
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
Objective-C
extern const GADAdLoaderAdType _Nonnull kGADAdLoaderAdTypeNativeContent
-
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
Objective-C
extern const GADAdLoaderAdType _Nonnull kGADAdLoaderAdTypeNativeCustomTemplate
-
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
Objective-C
extern const GADAdLoaderAdType _Nonnull kGADAdLoaderAdTypeDFPBanner
-
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
Objective-C
extern const GADAdLoaderAdType _Nonnull kGADAdLoaderAdTypeUnifiedNative
-
iPhone and iPod Touch ad size. Typically 320x50.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeBanner
-
Taller version of kGADAdSizeBanner. Typically 320x100.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeLargeBanner
-
Medium Rectangle size for the iPad (especially in a UISplitView’s left pane). Typically 300x250.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeMediumRectangle
-
Full Banner size for the iPad (especially in a UIPopoverController or in UIModalPresentationFormSheet). Typically 468x60.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeFullBanner
-
Leaderboard size for the iPad. Typically 728x90.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeLeaderboard
-
Skyscraper size for the iPad. Mediation only. AdMob/Google does not offer this size. Typically 120x600.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeSkyscraper
-
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
Objective-C
extern const GADAdSize kGADAdSizeSmartBannerPortrait
-
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
Objective-C
extern const GADAdSize kGADAdSizeSmartBannerLandscape
-
An ad size that spans the full width of its container, with a height dynamically determined by the ad.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeFluid
-
Invalid ad size marker.
Declaration
Objective-C
extern const GADAdSize kGADAdSizeInvalid
-
Key for getting the server parameter configured in AdMob when mediating to a custom event adapter. Example: NSString *serverParameter = connector.credentials[GADCustomEventParametersServer].
Declaration
Objective-C
extern NSString *const _Nonnull GADCustomEventParametersServer
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallHeadlineAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallCallToActionAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallIconAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallBodyAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallStoreAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallPriceAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallImageAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallStarRatingAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallAttributionIconAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallAttributionTextAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallMediaViewAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallAdChoicesViewAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeAppInstallAssetID const GADNativeAppInstallBackgroundAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentHeadlineAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentBodyAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentCallToActionAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentAdvertiserAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentImageAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentLogoAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentAttributionIconAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentAttributionTextAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentMediaViewAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentAdChoicesViewAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADNativeContentAdAssetID const GADNativeContentBackgroundAsset
-
Asset key for the GADMediaView asset view.
Declaration
Objective-C
extern NSString *const _Nonnull GADNativeCustomTemplateAdMediaViewKey
-
Add this constant to the testDevices property’s array to receive test ads on the simulator.
Declaration
Objective-C
extern const id _Nonnull kGADSimulatorID
-
Rating for content suitable for general audiences, including families.
Declaration
Objective-C
extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingGeneral
-
Rating for content suitable for most audiences with parental guidance.
Declaration
Objective-C
extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingParentalGuidance
-
Rating for content suitable for teen and older audiences.
Declaration
Objective-C
extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingTeen
-
Rating for content suitable only for mature audiences.
Declaration
Objective-C
extern GADMaxAdContentRating _Nonnull const GADMaxAdContentRatingMatureAudience
-
Google AdMob Ads error domain.
Declaration
Objective-C
extern NSString *const _Nonnull kGADErrorDomain
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeHeadlineAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeCallToActionAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeIconAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeBodyAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeStoreAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativePriceAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeImageAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeStarRatingAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeAdvertiserAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeMediaViewAsset
-
Undocumented
Declaration
Objective-C
GAD_EXTERN GADUnifiedNativeAssetIdentifier const GADUnifiedNativeAdChoicesViewAsset
-
Project version string for GoogleMobileAds.
Declaration
Objective-C
extern const unsigned char GoogleMobileAdsVersionString[]