Troubleshooting show errors
Solve common issues with showing ads, such as capped placements, ads that expire before show, and show calls made while an ad is on screen.
Read time 4 minutesLast updated a day ago
These errors occur when the LevelPlay SDK can't display a loaded ad. Use this page to quickly identify and fix issues that might occur when showing an ad.
Symptoms
When you try to show an ad, the SDK returns the following error code and message:
[509] show called while ad unit is not ready to show
Cause
Common reasons for this error include:
- Your app calls show when no loaded ad is ready to display
- A loaded ad becomes unavailable before your app calls show
Resolution
To resolve this error, do the following:
- Load a new ad, and wait for the load success callback before you call show.
- If the error happens repeatedly, capture logs and contact LevelPlay support.
Symptoms
When you try to show an ad, the SDK returns one of the following error codes and messages:
[524] placement [name] is capped[530] adUnitId [id] is capped
Cause
A capping or pacing rule configured in the dashboard prevents an ad from showing.
Common reasons for this error include:
- The daily or session cap is reached for the placement (524) or ad unit (530)
- The pacing interval hasn't elapsed
Resolution
To resolve this error, do the following:
- Don't reload the ad. It stays loaded, so show it again after the cap or pacing period ends.
- Review the capping and pacing settings for the ad unit or placement in the LevelPlay dashboard.
Symptoms
When you try to show an ad, the SDK returns the following error code with one of the following messages:
[628] Show called before load success[628] Show is called while loading ad[628] Show called on expired ad
Cause
Common reasons for this error include:
- Your app calls show without a successful load
- Your app calls show while a load is still in progress
- Too much time passes between load and show, so the ad expires
Resolution
To resolve this error, do the following:
- Call before you show, and show only after
isAdReady()fires.onAdLoaded - If the ad has expired, load a new ad. Add logic to reload automatically and check ad readiness right before you show.
Symptoms
When you try to show an ad, the SDK returns the following error code with one of the following messages, depending on the state of the ad:
[630] Ad is already showing[630] Ad is already shown
Cause
Common reasons for this error include:
- Your app calls show while an ad is already on screen
- A user double-taps the button that shows an ad
- Your app triggers show again before the ad closes
Resolution
To resolve this error, do the following:
- Prevent repeated taps on the button, and disable it while an ad is showing.
- Show another ad only after the callback fires.
onAdClosed
Symptoms
When an ad network fails to show its ad and no other loaded ad can take over, the SDK returns the ad network's own error code and message instead of a LevelPlay error code.
Cause
The ad network can't show its ad, and no other loaded ad is available to show instead.
Resolution
To resolve this error, do the following:
- Load a new ad.
- Look up the error code in the ad network's documentation.
- If the error persists with one network, capture logs and contact LevelPlay support.