AI-generated Key Takeaways
-
The document provides a list of global enumerations available in the Google Mobile Ads SDK for iOS.
-
These enumerations cover various aspects of ad integration, such as AdChoices position, ad format, ad value precision, adapter initialization state, media aspect ratio, presentation error codes, publisher privacy personalization states, general error codes, and banner animation types.
-
Each enumeration includes a brief description and its declaration in both Swift and Objective-C.
Enumerations
The following enumerations are available globally.
-
Position of the AdChoices icon in the containing ad.
Declaration
Swift
enum AdChoicesPosition : Int, @unchecked SendableObjective-C
enum GADAdChoicesPosition : NSInteger {} -
Requested ad format.
Declaration
Swift
enum AdFormat : Int, @unchecked SendableObjective-C
enum GADAdFormat : NSInteger {} -
Undocumented
Declaration
Swift
enum AdValuePrecision : Int, @unchecked SendableObjective-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 } -
Undocumented
Declaration
Swift
enum AdapterInitializationState : Int, @unchecked SendableObjective-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 } -
Media aspect ratio.
Declaration
Swift
enum MediaAspectRatio : Int, @unchecked SendableObjective-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 = PresentationErrorObjective-C
enum GADPresentationErrorCode : NSInteger {} -
Publisher privacy treatment personalization states.
Declaration
Swift
enum PublisherPrivacyPersonalizationState : Int, @unchecked SendableObjective-C
enum GADPublisherPrivacyPersonalizationState : NSInteger {} -
NSError codes for GAD error domain.
Declaration
Swift
typealias RequestError.Code._ErrorType = RequestErrorObjective-C
enum GADErrorCode : NSInteger {} -
These are the types of animation we employ for transitions between two mediated ads.
Declaration
Swift
enum MediationBannerAnimationType : Int, @unchecked SendableObjective-C
enum GADMBannerAnimationType : NSInteger {}