Your ad display delegate or callback interface receives a call if an ad fails to load or fails to display.
An error code accompanies this call.
This page describes these error codes.
You can retrieve the error code by calling the AdEventInfo.getErrorCode() method.
This method is part of the ad event object that is returned to you in the failure event.
MAX error codes
Code
Description
Load / Display
204
No ads are eligible for your device (no fill). MAX returned no eligible ads from any mediated networks for this app/device.
L
−1
The system is in an unexpected state. This error code represents an error that MAX could not categorize into one of the other defined errors. See the message field in the error object for more details.
L/D
−23
You attempt to show a fullscreen ad (interstitial or rewarded) while another fullscreen ad still shows.
D
−24
You attempt to show a fullscreen ad before it has loaded.
D
−1000
The ad request failed due to a generic network error. See the message field in the error object for more details.
L
−1001
The ad request timed out due to a slow internet connection.
L
−1009
The ad request failed because the device is not connected to the internet.
L
−5001
The ad failed to load because no networks can fill. MAX returned eligible ads from mediated networks, but all ads failed to load.
L
−5201
The internal state of the SDK is invalid.
L
−5205
The adapter did not have an ad ready when attempting to display.
L
−5209
Unspecified internal error.
L
−5601
The SDK failed to load an ad because it could not find the top Activity.
L
−5602
The SDK failed to display an ad because the user has the “Don’t Keep Activities” developer setting enabled.
D
−5603
The SDK failed to load an ad because the publisher provided an invalid ad unit identifier. Possible reasons for an invalid ad unit identifier:
ad unit identifier is malformed or does not exist
ad unit is disabled
ad unit is not associated with the current app’s package name
ad unit was created in the last 30–60 minutes
L
Error codes from various networks
To better understand the error codes that ad networks return, see the error documentation pages published by those networks: