# Error Code

For any exception or failure generated during SDK initialization and loading and presentation of ads, SDK will return the error code and error message to indicate the specific cause of error. It is InitCallback for the initialization callback interface and corresponding Listener interface for the ads, such as callback event of Rewarded Video throughRewardedVideoListener interface.

onRewardedVideoAdShowFailed returns, and the parameter error is an error object, which contains the error code and error information.

The error codes and corresponding cause of error are shown in the table below:

# Init

Error Code
Error Information Description
111 invalid request Initialization failure, invalid request due to parameter or configuration error
121 network error Initialization failure, no Internet connection
131 server error Initialization failure, server response failure, such as wrong response message, response timeout or server internal error
151 unknown internal error Initialization failure, unknown error, such as activity destroyed

# Load

Error Code
Error Information Description
211 Invalid request Ads loading failure, invalid request due to parameter or configuration error
221 network error Ads loading failure, no Internet connection
231 server error Ads loading failure, server response failure, such as wrong response message, response timeout or server internal error
241 No ad fill Ads loading failure, ads request sent successfully, but no ads available
242 SDK not initialized Ads loading failure, SDK not initialized
243 reached request cap Ads loading failure, loading frequency capping controlled
244 missing AdNetwork SDK/Adapter Third-party platform instance loading failure, SDK or adapter not-integrated error
245 adapter returned an error or no fill Third-party platform instance loading failure, SDK return error or nofill
251 unknown internal error Ads loading failure, unknown error, such as activity destroyed

# Show

Error Code
Error Information Description
311 invalid request Ads presentation failure, invalid request due to parameter error
341 ad not ready Ads presentation failure, no ads available. It is recommended to call the isReady() method to check the availability before presentation.
342 SDK not initialized SDK not initialized
343 reached scene impression cap The ads presentation reaches the frequency capping.
345 Ad show failure Ads presentation failure
351 unknown internal error Unknown error, such as activity destroyed

# Common error solutions

  1. Load ad error 211, Load Invalid Request, internalCode 4
    This error indicates that there are advertisements in the process of loading, and will not affect the loading and filling of advertisements.

  2. Load ad error 241, instance empty
    This error indicates that the waterfall configuration sent is empty, and you need to check:

    • Check the Mint Mediation backend to see if the waterfall stream information is configured for the corresponding ad placement.
    • Check the build.gradle of the project to see if the SDK and adapter corresponding to the advertisement have been integrated.
  3. Load ad error 245
    This error indicates that Mint Mediation has successfully delivered the configuration, but none of the third-party ad SDKs in the configuration have successfully requested advertisements.You can try the following method to make another request:

    • Switch the IP and restart the app
    • Configure the test advertising ID in the Mint Mediation backend.