GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Enumerations
The following enumerations are available globally.
-
Position of the AdChoices icon in the containing ad.
Declaration
Swift
enum AdChoicesPosition : Int, @unchecked Sendable
Objective-C
enum GADAdChoicesPosition : NSInteger {}
-
Declaration
Swift
enum AdFormat : Int, @unchecked Sendable
Objective-C
enum GADAdFormat : NSInteger {}
-
Declaration
Swift
enum AdValuePrecision : Int, @unchecked Sendable
Objective-C
NS_ENUM(NSInteger, GADAdValuePrecision) { /// An ad value with unknown precision.
GADAdValuePrecisionUnknown = 0, /// An ad value estimated from aggregated data.
GADAdValuePrecisionEstimated = 1, /// A publisher-provided ad value, such as manual CPMs in a mediation group.
GADAdValuePrecisionPublisherProvided = 2, /// The precise value paid for this ad.
GADAdValuePrecisionPrecise = 3
}
-
Declaration
Swift
enum AdapterInitializationState : Int, @unchecked Sendable
Objective-C
NS_ENUM(NSInteger, GADAdapterInitializationState) { /// The mediation adapter is less likely to fill ad requests.
GADAdapterInitializationStateNotReady = 0, /// The mediation adapter is ready to service ad requests.
GADAdapterInitializationStateReady = 1
}
-
Declaration
Swift
enum MediaAspectRatio : Int, @unchecked Sendable
Objective-C
enum GADMediaAspectRatio : NSInteger {}
-
Error codes in the Google Mobile Ads SDK domain that surface due to errors when attempting to
present an ad.
Declaration
Swift
typealias PresentationError.Code._ErrorType = PresentationError
Objective-C
enum GADPresentationErrorCode : NSInteger {}
-
Publisher privacy treatment personalization states.
Declaration
Swift
enum PublisherPrivacyPersonalizationState : Int, @unchecked Sendable
Objective-C
enum GADPublisherPrivacyPersonalizationState : NSInteger {}
-
NSError codes for GAD error domain.
Declaration
Swift
typealias RequestError.Code._ErrorType = RequestError
Objective-C
enum GADErrorCode : NSInteger {}
-
These are the types of animation we employ for transitions between two mediated ads.
Declaration
Swift
enum MediationBannerAnimationType : Int, @unchecked Sendable
Objective-C
enum GADMBannerAnimationType : NSInteger {}
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis documentation outlines globally available enumerations within the Google Mobile Ads SDK.\u003c/p\u003e\n"],["\u003cp\u003eThese enumerations define constants for ad formats, AdChoices positions, error codes, and more.\u003c/p\u003e\n"],["\u003cp\u003eSeveral enumerations, like \u003ccode\u003eGADAdValuePrecision\u003c/code\u003e and \u003ccode\u003eGADAdapterInitializationState\u003c/code\u003e, provide status and data related to ad serving.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize these enumerations to interact with and control ad behavior within their iOS applications.\u003c/p\u003e\n"],["\u003cp\u003eObjective-C and Swift declarations are provided for each enumeration to facilitate integration.\u003c/p\u003e\n"]]],["The document defines several enumerations available globally for the Google Mobile Ads SDK. These include: `GADAdChoicesPosition` (AdChoices icon position), `GADAdFormat` (requested ad format), `GADAdValuePrecision` (ad value precision with levels like unknown, estimated, publisher-provided, precise), `GADAdapterInitializationState` (mediation adapter readiness), `GADMediaAspectRatio` (media aspect ratio), `GADPresentationErrorCode` (ad presentation errors), `GADPublisherPrivacyPersonalizationState` (privacy personalization), `GADErrorCode` (general error codes), and `GADMBannerAnimationType` (banner ad transitions). Each enum has Swift and Objective-C declarations.\n"],null,["# GoogleMobileAds Framework Reference\n\nEnumerations\n============\n\nThe following enumerations are available globally.\n- `\n ``\n ``\n `\n\n ### [GADAdChoicesPosition](/admob/ios/api/reference/Enums/GADAdChoicesPosition)\n\n `\n ` \n Position of the AdChoices icon in the containing ad. \n\n #### Declaration\n\n Swift \n\n enum AdChoicesPosition : Int, @unchecked Sendable\n\n Objective-C \n\n enum GADAdChoicesPosition : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [GADAdFormat](/admob/ios/api/reference/Enums/GADAdFormat)\n\n `\n ` \n Requested ad format. \n\n #### Declaration\n\n Swift \n\n enum AdFormat : Int, @unchecked Sendable\n\n Objective-C \n\n enum GADAdFormat : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [GADAdValuePrecision](/admob/ios/api/reference/Enums/GADAdValuePrecision)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n enum AdValuePrecision : Int, @unchecked Sendable\n\n Objective-C \n\n NS_ENUM(NSInteger, GADAdValuePrecision) {\n /// An ad value with unknown precision.\n GADAdValuePrecisionUnknown = 0,\n /// An ad value estimated from aggregated data.\n GADAdValuePrecisionEstimated = 1,\n /// A publisher-provided ad value, such as manual CPMs in a mediation group.\n GADAdValuePrecisionPublisherProvided = 2,\n /// The precise value paid for this ad.\n GADAdValuePrecisionPrecise = 3\n }\n\n- `\n ``\n ``\n `\n\n ### [GADAdapterInitializationState](/admob/ios/api/reference/Enums/GADAdapterInitializationState)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Swift \n\n enum AdapterInitializationState : Int, @unchecked Sendable\n\n Objective-C \n\n NS_ENUM(NSInteger, GADAdapterInitializationState) {\n /// The mediation adapter is less likely to fill ad requests.\n GADAdapterInitializationStateNotReady = 0,\n /// The mediation adapter is ready to service ad requests.\n GADAdapterInitializationStateReady = 1\n }\n\n- `\n ``\n ``\n `\n\n ### [GADMediaAspectRatio](/admob/ios/api/reference/Enums/GADMediaAspectRatio)\n\n `\n ` \n Media aspect ratio. \n\n #### Declaration\n\n Swift \n\n enum MediaAspectRatio : Int, @unchecked Sendable\n\n Objective-C \n\n enum GADMediaAspectRatio : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [GADPresentationErrorCode](/admob/ios/api/reference/Enums/GADPresentationErrorCode)\n\n `\n ` \n Error codes in the Google Mobile Ads SDK domain that surface due to errors when attempting to\n present an ad. \n\n #### Declaration\n\n Swift \n\n typealias PresentationError.Code._ErrorType = PresentationError\n\n Objective-C \n\n enum GADPresentationErrorCode : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [GADPublisherPrivacyPersonalizationState](/admob/ios/api/reference/Enums/GADPublisherPrivacyPersonalizationState)\n\n `\n ` \n Publisher privacy treatment personalization states. \n\n #### Declaration\n\n Swift \n\n enum PublisherPrivacyPersonalizationState : Int, @unchecked Sendable\n\n Objective-C \n\n enum GADPublisherPrivacyPersonalizationState : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [GADErrorCode](/admob/ios/api/reference/Enums/GADErrorCode)\n\n `\n ` \n NSError codes for GAD error domain. \n\n #### Declaration\n\n Swift \n\n typealias RequestError.Code._ErrorType = RequestError\n\n Objective-C \n\n enum GADErrorCode : NSInteger {}\n\n- `\n ``\n ``\n `\n\n ### [GADMBannerAnimationType](/admob/ios/api/reference/Enums/GADMBannerAnimationType)\n\n `\n ` \n These are the types of animation we employ for transitions between two mediated ads. \n\n #### Declaration\n\n Swift \n\n enum MediationBannerAnimationType : Int, @unchecked Sendable\n\n Objective-C \n\n enum GADMBannerAnimationType : NSInteger {}"]]