GoogleMobileAds Framework Reference

GADMediationErrorCode

enum GADMediationErrorCode : 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 errorInvalidRequest = 0

    Objective-C

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

    Declaration

    Swift

    case errorNoFill = 1

    Objective-C

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

    Declaration

    Swift

    case errorNetworkError = 2

    Objective-C

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

    Declaration

    Swift

    case errorServerError = 3

    Objective-C

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

    Declaration

    Swift

    case errorOSVersionTooLow = 4

    Objective-C

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

    Declaration

    Swift

    case errorTimeout = 5

    Objective-C

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

    Declaration

    Swift

    case errorInterstitialAlreadyUsed = 6

    Objective-C

    kGADErrorInterstitialAlreadyUsed = 6
  • The mediation response was invalid.

    Declaration

    Swift

    case errorMediationDataError = 7

    Objective-C

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

    Declaration

    Swift

    case errorMediationAdapterError = 8

    Objective-C

    kGADErrorMediationAdapterError = 8
  • Attempting to pass an invalid ad size to an adapter.

    Declaration

    Swift

    case errorMediationInvalidAdSize = 10

    Objective-C

    kGADErrorMediationInvalidAdSize = 10
  • Internal error.

    Declaration

    Swift

    case errorInternalError = 11

    Objective-C

    kGADErrorInternalError = 11
  • Invalid argument error.

    Declaration

    Swift

    case errorInvalidArgument = 12

    Objective-C

    kGADErrorInvalidArgument = 12
  • Received invalid response.

    Declaration

    Swift

    case errorReceivedInvalidResponse = 13

    Objective-C

    kGADErrorReceivedInvalidResponse = 13
  • Will not send request because the rewarded ad object has already been used.

    Declaration

    Swift

    case errorRewardedAdAlreadyUsed = 14

    Objective-C

    kGADErrorRewardedAdAlreadyUsed = 14
  • A mediation ad network adapter received an ad request, but did not fill. The adapter’s error is included as an underlyingError.

    Declaration

    Swift

    case errorMediationNoFill = 9

    Objective-C

    kGADErrorMediationNoFill = 9
  • Will not send request because the ad object has already been used.

    Declaration

    Swift

    case errorAdAlreadyUsed = 19

    Objective-C

    kGADErrorAdAlreadyUsed = 19
  • Will not send request because the application identifier is missing.

    Declaration

    Swift

    case errorApplicationIdentifierMissing = 20

    Objective-C

    kGADErrorApplicationIdentifierMissing = 20