AI-generated Key Takeaways
- 
          GADErrorCode is an enum representing NSError codes for the GAD error domain. 
- 
          Errors include issues with invalid requests, no ad returned, network problems, server errors, low OS version, timeouts, mediation issues, internal errors, invalid arguments, ad reuse, missing application identifier, and invalid ad strings. 
- 
          Each error code is associated with a specific reason for ad request or delivery failure. 
- 
          The localizedFailureReasonin theGADErrorInvalidRequestcan provide more details about the invalid request.
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. DeclarationSwift case invalidRequest = 0Objective-C GADErrorInvalidRequest = 0
- 
                  
                  The ad request was successful, but no ad was returned. DeclarationSwift case noFill = 1Objective-C GADErrorNoFill = 1
- 
                  
                  There was an error loading data from the network. DeclarationSwift case networkError = 2Objective-C GADErrorNetworkError = 2
- 
                  
                  The ad server experienced a failure processing the request. DeclarationSwift case serverError = 3Objective-C GADErrorServerError = 3
- 
                  
                  The current device’s OS is below the minimum required version. DeclarationSwift case osVersionTooLow = 4Objective-C GADErrorOSVersionTooLow = 4
- 
                  
                  The request was unable to be loaded before being timed out. DeclarationSwift case timeout = 5Objective-C GADErrorTimeout = 5
- 
                  
                  The mediation response was invalid. DeclarationSwift case mediationDataError = 7Objective-C GADErrorMediationDataError = 7
- 
                  
                  Error finding or creating a mediation ad network adapter. DeclarationSwift case mediationAdapterError = 8Objective-C GADErrorMediationAdapterError = 8
- 
                  
                  Attempting to pass an invalid ad size to an adapter. DeclarationSwift case mediationInvalidAdSize = 10Objective-C GADErrorMediationInvalidAdSize = 10
- 
                  
                  Internal error. DeclarationSwift case internalError = 11Objective-C GADErrorInternalError = 11
- 
                  
                  Invalid argument error. DeclarationSwift case invalidArgument = 12Objective-C GADErrorInvalidArgument = 12
- 
                  
                  Will not send request because the ad object has already been used. DeclarationSwift case adAlreadyUsed = 19Objective-C GADErrorAdAlreadyUsed = 19
- 
                  
                  Will not send request because the application identifier is missing. DeclarationSwift case applicationIdentifierMissing = 20Objective-C GADErrorApplicationIdentifierMissing = 20
- 
                  
                  Received invalid ad string. DeclarationSwift case receivedInvalidAdString = 21Objective-C GADErrorReceivedInvalidAdString = 21