GADRequestError.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // GADRequestError.h
  3. // Google AdMob Ads SDK
  4. //
  5. // Copyright 2011 Google Inc. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "GADModules.h"
  9. @class GADRequest;
  10. /// Google AdMob Ads error domain.
  11. extern NSString *const kGADErrorDomain;
  12. /// NSError codes for GAD error domain.
  13. typedef NS_ENUM(NSInteger, GADErrorCode) {
  14. /// The ad request is invalid. The localizedFailureReason error description will have more
  15. /// details. Typically this is because the ad did not have the ad unit ID or root view
  16. /// controller set.
  17. kGADErrorInvalidRequest,
  18. /// The ad request was successful, but no ad was returned.
  19. kGADErrorNoFill,
  20. /// There was an error loading data from the network.
  21. kGADErrorNetworkError,
  22. /// The ad server experienced a failure processing the request.
  23. kGADErrorServerError,
  24. /// The current device's OS is below the minimum required version.
  25. kGADErrorOSVersionTooLow,
  26. /// The request was unable to be loaded before being timed out.
  27. kGADErrorTimeout,
  28. /// Will not send request because the interstitial object has already been used.
  29. kGADErrorInterstitialAlreadyUsed,
  30. /// The mediation response was invalid.
  31. kGADErrorMediationDataError,
  32. /// Error finding or creating a mediation ad network adapter.
  33. kGADErrorMediationAdapterError,
  34. /// The mediation request was successful, but no ad was returned from any ad networks.
  35. kGADErrorMediationNoFill,
  36. /// Attempting to pass an invalid ad size to an adapter.
  37. kGADErrorMediationInvalidAdSize
  38. };
  39. /// Represents the error generated due to invalid request parameters.
  40. @interface GADRequestError : NSError
  41. @end