Documentation

Troubleshooting load errors

Solve common issues with loading ads, such as no fill, invalid ad unit IDs, and load calls made too early.
Read time 6 minutesLast updated 17 hours ago

These errors occur when LevelPlay can't fetch ad content. If ads don't load, they can't be shown, so the ad request isn't filled. Use this page to quickly identify and fix issues that might occur when loading an ad.
Note
Ad requests aren't guaranteed to be filled every time. Fill rates depend on region, campaign availability, and the advertising market price, which can fluctuate over time.

Symptoms

When you try to load an ad, LevelPlay returns the following error code and message:
[509] Mediation No fill

Cause

Common reasons for this error include:
  • No network has an ad for the request (for example, because of region, campaign availability, or price)
  • Networks fail to initialize or are misconfigured
  • The auction request fails and no fallback waterfall is available

Resolution

To resolve this error, do the following:
  1. Retry the load after a delay. Use exponential backoff, and don't call load repeatedly without a delay.
  2. Confirm that your ad networks are integrated and enabled in the LevelPlay dashboard, and that the test suite shows them as initialized.
  3. Check your geographic and targeting settings. Fill rates vary over time.

Symptoms

When you try to load an ad, LevelPlay returns the following error code and message:
[624] Ad unit ID should be specified

Cause

This error occurs when your app calls load on an ad object that your app created with an empty or null ad unit ID.

Resolution

To resolve this error, do the following:
  1. Pass the ad unit ID from the LevelPlay dashboard.
  2. Pass it when you create the ad object, and make sure the value isn't empty at that point.
// Pass the ad unit ID from the LevelPlay dashboard.var interstitialAd = new LevelPlayInterstitialAd("your_ad_unit_id");

Symptoms

When you try to load an ad, LevelPlay returns the following error code with one of the following messages, depending on the platform and ad format:
[625] Load must be called after init success callback (Android interstitial and rewarded, and all iOS ad formats)[625] load must be called after init success callback (Android banner)

Cause

Common reasons for this error include:
  • Your app calls load before the
    OnInitSuccess
    event fires
  • Initialization fails, and your app still attempts to load an ad

Resolution

To resolve this error, do the following:
  1. Wait for the
    OnInitSuccess
    event before you create or load any ads.
  2. If initialization fails, don't call load. Fix the init error first, then load ads after init succeeds.
LevelPlay.OnInitSuccess += (config) =>{ // Init succeeded, so you can create and load ads now. var interstitialAd = new LevelPlayInterstitialAd("your_ad_unit_id"); interstitialAd.LoadAd();};

Symptoms

When you try to load an ad, LevelPlay returns the following error code and message:
[626] Invalid ad unit id

Cause

Common reasons for this error include:
  • A typo or wrong ad unit ID
  • An ad unit that belongs to another app or platform
  • A recently added ad unit that isn't in the init configuration
  • An ad unit ID that belongs to a different ad format (for example, an interstitial ad unit ID used for a rewarded ad)

Resolution

To resolve this error, do the following:
  1. Copy the ad unit ID again from the LevelPlay dashboard and make sure it matches the app and platform you're building.
  2. Make sure the ad unit ID matches the ad format you're loading, such as interstitial, rewarded, or banner.
  3. If you recently created the ad unit, wait a few minutes, then restart the app so LevelPlay fetches the updated configuration.

Symptoms

When you try to load an ad, LevelPlay returns the following error code and message:
[627] Load is already called
Note
This error applies to interstitial and rewarded ads. Banner ads don't return this error.

Cause

Common reasons for this error include:
  • Your app calls load twice in a row
  • Your app calls load again before the load event fires

Resolution

To resolve this error, do the following:
  1. Wait for
    OnAdLoaded
    or
    OnAdLoadFailed
    before you call
    LoadAd()
    again on the same ad object.
  2. Track the load state in your app. For example, set a flag when you call
    LoadAd()
    and clear it in either event, so that repeated triggers (such as a button tap) can't start a second load.

Symptoms

When you try to load an ad, LevelPlay returns the following error code with one of the following messages, depending on the state of the ad when load is called:
[629] Load is called while ad is showing[629] Load is called while ad is shown
Note
This error applies to interstitial and rewarded ads. Banner ads don't return this error.

Cause

Common reasons for this error include:
  • Your app calls load on an ad object that's currently displaying an ad
  • Your app calls load from the show flow before the ad closes

Resolution

To resolve this error, do the following:
  1. Call load again only after the ad has closed.
  2. Load the next ad in the
    OnAdClosed
    event.
interstitialAd.OnAdClosed += (adInfo) =>{ // The ad closed, so you can load the next one. interstitialAd.LoadAd();};

Symptoms

When you try to load an ad, LevelPlay returns the following error code and message:
[633] Load called after destroy

Cause

LevelPlay can't load an ad on a banner that was already destroyed.
Common reasons for this error include:
  • Your app calls load after
    destroy
    on the same banner ad object
  • Your app keeps a reference to a destroyed banner and reuses it

Resolution

To resolve this error, do the following:
  1. Create a new banner ad object after you call
    destroy
    , and don't reuse the destroyed instance.
  2. Clear your reference to the destroyed banner so it can't be reused by accident.

Symptoms

When you try to load an ad, LevelPlay returns one of the following error codes, depending on the ad format, with the same message:
[1024] no available ad to load (rewarded)[1035] no available ad to load (interstitial)[1044] no available ad to load (banner)

Cause

Common reasons for this error include:
  • No ad networks are enabled for the ad unit
  • No bidder returns bidding data, and no non-bidding networks are configured

Resolution

To resolve this error, do the following:
  1. Make sure at least one network is enabled for the ad unit in the LevelPlay dashboard.
  2. Confirm that your ad network adapters are integrated, and use the test suite to check whether they initialized.