MAErrorCode.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //
  2. // MAErrorCode.h
  3. // AppLovinSDK
  4. //
  5. // Created by Thomas So on 5/9/21.
  6. //
  7. /**
  8. * This enum contains various error codes that the SDK can return when a MAX ad fails to load or display.
  9. */
  10. typedef NS_ENUM(NSInteger, MAErrorCode)
  11. {
  12. /**
  13. * This error code represents an error that could not be categorized into one of the other defined errors. See the message field in the error object for more details.
  14. */
  15. MAErrorCodeUnspecified = -1,
  16. /**
  17. * This error code indicates that MAX returned no eligible ads from any mediated networks for this app/device.
  18. */
  19. MAErrorCodeNoFill = 204,
  20. /**
  21. * This error code indicates that MAX returned eligible ads from mediated networks, but all ads failed to load. See the adLoadFailureInfo field in the error object for more details.
  22. */
  23. MAErrorCodeAdLoadFailed = -5001,
  24. /**
  25. * This error code indicates that the SDK failed to load an ad because the publisher provided an invalid ad unit identifier.
  26. * Possible reasons for an invalid ad unit identifier:
  27. * 1. Ad unit identifier is malformed or does not exist
  28. * 2. Ad unit is disabled
  29. * 3. Ad unit is not associated with the current app's package name
  30. * 4. Ad unit was created within the last 30-60 minutes
  31. */
  32. MAErrorCodeInvalidAdUnitIdentifier = -5603,
  33. /**
  34. * This error code indicates that the ad request failed due to a generic network error. See the message field in the error object for more details.
  35. */
  36. MAErrorCodeNetworkError = -1000,
  37. /**
  38. * This error code indicates that the ad request timed out due to a slow internet connection.
  39. */
  40. MAErrorCodeNetworkTimeout = -1001,
  41. /**
  42. * This error code indicates that the ad request failed because the device is not connected to the internet.
  43. */
  44. MAErrorCodeNoNetwork = -1009,
  45. /**
  46. * This error code indicates that you attempted to show a fullscreen ad while another fullscreen ad is still showing.
  47. */
  48. MAErrorCodeFullscreenAdAlreadyShowing = -23,
  49. /**
  50. * This error code indicates you are attempting to show a fullscreen ad before the one has been loaded.
  51. */
  52. MAErrorCodeFullscreenAdNotReady = -24,
  53. /**
  54. * This error code indicates you attempted to present a fullscreen ad from an invalid view controller.
  55. */
  56. MAErrorCodeFullscreenAdInvalidViewController = -25,
  57. /**
  58. * This error code indicates you are attempting to load a fullscreen ad while another fullscreen ad is already loading.
  59. */
  60. MAErrorCodeFullscreenAdAlreadyLoading = -26,
  61. /**
  62. * This error code indicates you are attempting to load a fullscreen ad while another fullscreen ad is still showing.
  63. */
  64. MAErrorCodeFullscreenAdLoadWhileShowing = -27
  65. };