GoogleMobileAds Framework Reference

GADErrorCode

enumGADErrorCode:Int

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

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    caseinterstitialAlreadyUsed=6
  • The mediation response was invalid.

    Declaration

    Swift

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

    Declaration

    Swift

    casemediationAdapterError=8
  • The mediation request was successful, but no ad was returned from any ad networks.

    Declaration

    Swift

    casemediationNoFill=9
  • Attempting to pass an invalid ad size to an adapter.

    Declaration

    Swift

    casemediationInvalidAdSize=10
  • Internal error.

    Declaration

    Swift

    caseinternalError=11
  • Invalid argument error.

    Declaration

    Swift

    caseinvalidArgument=12
  • Received invalid response.

    Declaration

    Swift

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

    Declaration

    Swift

    caserewardedAdAlreadyUsed=14

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-03-03 UTC.