GoogleMobileAds Framework Reference

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 {} 
    
  • Requested ad format.

    Declaration

    Swift

     enum AdFormat : Int, @unchecked Sendable 
    

    Objective-C

     enum GADAdFormat : NSInteger {} 
    
  • Undocumented

    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
    } 
     
     
     
     
    
  • Undocumented

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

    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 {} 
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: