# GoogleMobileAds Framework Reference

# GADPresentationErrorCode

    enum GADPresentationErrorCode : NSInteger {}

Error codes in the Google Mobile Ads SDK domain that surface due to errors when attempting to
present an ad.
- `


  ### [GADPresentationErrorCodeAdNotReady](https://developers.google.com/admob/ios/api/reference/Enums/GADPresentationErrorCode#/c:@E@GADPresentationErrorCode@GADPresentationErrorCodeAdNotReady)


  ` Ad isn't ready to be shown.

  #### Declaration

  Swift

      static var codeAdNotReady: PresentationError.Code { get }

  Objective-C

      GADPresentationErrorCodeAdNotReady = 15

- `


  ### [GADPresentationErrorCodeAdTooLarge](https://developers.google.com/admob/ios/api/reference/Enums/GADPresentationErrorCode#/c:@E@GADPresentationErrorCode@GADPresentationErrorCodeAdTooLarge)


  ` Ad is too large for the scene.

  #### Declaration

  Swift

      static var codeAdTooLarge: PresentationError.Code { get }

  Objective-C

      GADPresentationErrorCodeAdTooLarge = 16

- `


  ### [GADPresentationErrorCodeInternal](https://developers.google.com/admob/ios/api/reference/Enums/GADPresentationErrorCode#/c:@E@GADPresentationErrorCode@GADPresentationErrorCodeInternal)


  ` Internal error.

  #### Declaration

  Swift

      static var codeInternal: PresentationError.Code { get }

  Objective-C

      GADPresentationErrorCodeInternal = 17

- `


  ### [GADPresentationErrorCodeAdAlreadyUsed](https://developers.google.com/admob/ios/api/reference/Enums/GADPresentationErrorCode#/c:@E@GADPresentationErrorCode@GADPresentationErrorCodeAdAlreadyUsed)


  ` Ad has already been used.

  #### Declaration

  Swift

      static var codeAdAlreadyUsed: PresentationError.Code { get }

  Objective-C

      GADPresentationErrorCodeAdAlreadyUsed = 18

- `


  ### [GADPresentationErrorNotMainThread](https://developers.google.com/admob/ios/api/reference/Enums/GADPresentationErrorCode#/c:@E@GADPresentationErrorCode@GADPresentationErrorNotMainThread)


  ` Attempted to present ad from a non-main thread.

  #### Declaration

  Swift

      static var notMainThread: PresentationError.Code { get }

  Objective-C

      GADPresentationErrorNotMainThread = 21

- `


  ### [GADPresentationErrorMediation](https://developers.google.com/admob/ios/api/reference/Enums/GADPresentationErrorCode#/c:@E@GADPresentationErrorCode@GADPresentationErrorMediation)


  ` A mediation ad network adapter failed to present the ad. The adapter's
  error is included as an underlyingError.

  #### Declaration

  Swift

      static var mediation: PresentationError.Code { get }

  Objective-C

      GADPresentationErrorMediation = 22