Documentation

LevelPlay SDK - Android

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 5 minutesLast updated a day ago

These errors occur when the LevelPlay SDK 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, the SDK 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, the SDK 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 was created with an empty 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.

Symptoms

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

Cause

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

Resolution

To resolve this error, do the following:
  1. Wait for the init success callback 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.

Symptoms

When you try to load an ad, the SDK 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 are loading, such as interstitial, rewarded, or banner.
  3. If you recently created the ad unit, wait a few minutes, then restart the app so the SDK fetches the updated configuration.

Symptoms

When you try to load an ad, the SDK 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 callback fires

Resolution

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

Symptoms

When you try to load an ad, the SDK 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
    callback.

Symptoms

When you try to load an ad, the SDK 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)[1045] no available ad to load (native)

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.