GADErrorCode

enum GADErrorCode : NSInteger {}

NSError codes for GAD error domain.

  • The ad request is invalid. The localizedFailureReason error description will have more details. Typically this is because the ad did not have the ad unit ID or root view controller set.

    Declaration

    Swift

    case invalidRequest = 0

    Objective-C

    kGADErrorInvalidRequest
  • The ad request was successful, but no ad was returned.

    Declaration

    Swift

    case noFill = 1

    Objective-C

    kGADErrorNoFill
  • There was an error loading data from the network.

    Declaration

    Swift

    case networkError = 2

    Objective-C

    kGADErrorNetworkError
  • The ad server experienced a failure processing the request.

    Declaration

    Swift

    case serverError = 3

    Objective-C

    kGADErrorServerError
  • The current device’s OS is below the minimum required version.

    Declaration

    Swift

    case osVersionTooLow = 4

    Objective-C

    kGADErrorOSVersionTooLow
  • The request was unable to be loaded before being timed out.

    Declaration

    Swift

    case timeout = 5

    Objective-C

    kGADErrorTimeout
  • Will not send request because the interstitial object has already been used.

    Declaration

    Swift

    case interstitialAlreadyUsed = 6

    Objective-C

    kGADErrorInterstitialAlreadyUsed
  • The mediation response was invalid.

    Declaration

    Swift

    case mediationDataError = 7

    Objective-C

    kGADErrorMediationDataError
  • Error finding or creating a mediation ad network adapter.

    Declaration

    Swift

    case mediationAdapterError = 8

    Objective-C

    kGADErrorMediationAdapterError
  • The mediation request was successful, but no ad was returned from any ad networks.

    Declaration

    Swift

    case mediationNoFill = 9

    Objective-C

    kGADErrorMediationNoFill
  • Attempting to pass an invalid ad size to an adapter.

    Declaration

    Swift

    case mediationInvalidAdSize = 10

    Objective-C

    kGADErrorMediationInvalidAdSize
  • Internal error.

    Declaration

    Swift

    case internalError = 11

    Objective-C

    kGADErrorInternalError
  • Invalid argument error.

    Declaration

    Swift

    case invalidArgument = 12

    Objective-C

    kGADErrorInvalidArgument
  • Received invalid response.

    Declaration

    Swift

    case receivedInvalidResponse = 13

    Objective-C

    kGADErrorReceivedInvalidResponse