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 17 hours ago
These errors occur when LevelPlay 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, LevelPlay returns the following error code with one of the following messages:
[509] show called while ad unit is not ready to show (Android and iOS)[509] [network] show failed (iOS)
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
- The ad network reports that its ad isn't available at show time
Resolution
To resolve this error, do the following:
- Load a new ad, and wait for the event before you call
OnAdLoaded.ShowAd() - If the error happens repeatedly, capture logs and contact LevelPlay support.
Symptoms
When you try to show an ad, LevelPlay 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, LevelPlay 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.
if (interstitialAd.IsAdReady()){ interstitialAd.ShowAd();}
Symptoms
When you try to show an ad, LevelPlay 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 event fires.
OnAdClosed
Symptoms
When you try to show an ad, LevelPlay returns the following error code and message:
[632] viewController is missing
Cause
The SDK has no view controller to present the ad from.
Common reasons for this error include:
- Your app calls show while the app is in the background
- The view controller is released before your app calls show
Resolution
To resolve this error, show ads only when the app is in the foreground and the Unity player is active.
Symptoms
When an ad network fails to show its ad and no other loaded ad can take over, LevelPlay returns the ad network's own error code and message. For example, 509 with a message such as , or a network-specific code such as 5006.
AdMob show failedCause
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.