ALErrorCodes.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //
  2. // ALErrorCodes.h
  3. // AppLovinSDK
  4. //
  5. // Copyright © 2020 AppLovin Corporation. All rights reserved.
  6. //
  7. // Loading & Displaying Ads
  8. /**
  9. * @file ALErrorCodes.h
  10. */
  11. /**
  12. * The SDK is currently disabled.
  13. */
  14. #define kALErrorCodeSdkDisabled -22
  15. /**
  16. * No ads are currently eligible for your device & location.
  17. */
  18. #define kALErrorCodeNoFill 204
  19. /**
  20. * A fetch ad request timed out (usually due to poor connectivity).
  21. */
  22. #define kALErrorCodeAdRequestNetworkTimeout -1001
  23. /**
  24. * The device is not connected to internet (for instance if user is in Airplane mode). This returns the same code as NSURLErrorNotConnectedToInternet.
  25. */
  26. #define kALErrorCodeNotConnectedToInternet -1009
  27. /**
  28. * An unspecified network issue occurred.
  29. */
  30. #define kALErrorCodeAdRequestUnspecifiedError -1
  31. /**
  32. * There has been a failure to render an ad on screen.
  33. */
  34. #define kALErrorCodeUnableToRenderAd -6
  35. /**
  36. * The zone provided is invalid; the zone needs to be added to your AppLovin account or may still be propagating to our servers.
  37. */
  38. #define kALErrorCodeInvalidZone -7
  39. /**
  40. * The provided ad token is invalid; ad token must be returned from AppLovin S2S integration.
  41. */
  42. #define kALErrorCodeInvalidAdToken -8
  43. /**
  44. * An attempt to cache a resource to the filesystem failed; the device may be out of space.
  45. */
  46. #define kALErrorCodeUnableToPrecacheResources -200
  47. /**
  48. * An attempt to cache an image resource to the filesystem failed; the device may be out of space.
  49. */
  50. #define kALErrorCodeUnableToPrecacheImageResources -201
  51. /**
  52. * An attempt to cache a video resource to the filesystem failed; the device may be out of space.
  53. */
  54. #define kALErrorCodeUnableToPrecacheVideoResources -202
  55. /**
  56. * An attempt to cache an HTML resource to the filesystem failed; the device may be out of space.
  57. */
  58. #define kALErrorCodeUnableToPrecacheHTMLResources -203
  59. /**
  60. * AppLovin servers have returned an invalid response.
  61. */
  62. #define kALErrorCodeInvalidResponse -800
  63. /**
  64. * A postback URL you attempted to dispatch was invalid or empty/nil.
  65. */
  66. #define kALErrorCodeInvalidURL -900
  67. /**
  68. * The request was invalid due to a malformed body.
  69. */
  70. #define kALErrorCodeInvalidBody -1000
  71. //
  72. // Rewarded Videos
  73. //
  74. /**
  75. * The developer called for a rewarded video before one was available.
  76. */
  77. #define kALErrorCodeIncentiviziedAdNotPreloaded -300
  78. /**
  79. * An unknown server-side error occurred.
  80. */
  81. #define kALErrorCodeIncentivizedUnknownServerError -400
  82. /**
  83. * A reward validation requested timed out (usually due to poor connectivity).
  84. */
  85. #define kALErrorCodeIncentivizedValidationNetworkTimeout -500
  86. /**
  87. * The user exited out of the rewarded ad early. You may or may not wish to grant a reward depending on your preference.
  88. */
  89. #define kALErrorCodeIncentivizedUserClosedVideo -600