Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

Enumerations

The following enumerations are available globally.

  • Requested ad format.

    Declaration

    Swift

    enum GADAdFormat : Int, @unchecked Sendable

    Objective-C

    enum GADAdFormat : NSInteger {}
  • Undocumented

    Declaration

    Swift

    enum GADAdValuePrecision : 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
    }
  • Undocumented

    Declaration

    Swift

    enum GADAdapterInitializationState : 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
    }
  • Media aspect ratio.

    Declaration

    Swift

    enum GADMediaAspectRatio : Int, @unchecked Sendable

    Objective-C

    enum GADMediaAspectRatio : NSInteger {}
  • Position of the AdChoices icon in the containing ad.

    Declaration

    Swift

    enum GADAdChoicesPosition : Int, @unchecked Sendable

    Objective-C

    enum GADAdChoicesPosition : NSInteger {}
  • Error codes in the Google Mobile Ads SDK domain that surface due to errors when attempting to present an ad.

    Declaration

    Swift

    enum GADPresentationErrorCode : Int, @unchecked Sendable

    Objective-C

    enum GADPresentationErrorCode : NSInteger {}
  • NSError codes for GAD error domain.

    Declaration

    Swift

    enum GADErrorCode : Int, @unchecked Sendable

    Objective-C

    enum GADErrorCode : NSInteger {}
  • These are the types of animation we employ for transitions between two mediated ads.

    Declaration

    Swift

    enum GADMBannerAnimationType : Int, @unchecked Sendable

    Objective-C

    enum GADMBannerAnimationType : NSInteger {}