GoogleMobileAds Framework Reference

Enumerations

The following enumerations are available globally.

  • Position of the AdChoices icon in the containing ad.

    Declaration

    Swift

    enum GADAdChoicesPosition : Int, @unchecked Sendable

    Objective-C

    enum GADAdChoicesPosition : NSInteger {}
  • 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 {}
  • 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 {}
  • Publisher privacy treatment personalization states.

    Declaration

    Swift

    enum GADPublisherPrivacyPersonalizationState : Int, @unchecked Sendable

    Objective-C

    enum GADPublisherPrivacyPersonalizationState : 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 {}