Skip to content
ReinoAds

OperationsSDK Beta

Error Handling

SDK error codes, empty response (no-fill) reasons and debugging.

The SDK reports load and show errors through error.code. For NO_FILL errors, error.reason contains the detailed reason from the server. With debug: true, all reasons are logged to the console with explanations.

const rewarded = useRewardedAd("rau_...");

useEffect(() => {
  if (rewarded.error?.code === "NO_FILL") {
    console.warn(rewarded.error.reason);
  }
}, [rewarded.error]);

No-fill reasons

ReasonMeaningSDK code
UNIT_NOT_FOUNDUnit missing, archived or the app was rejected.INVALID_AD_UNIT
APP_MISMATCHApp key, bundle ID or platform doesn't match the unit.INVALID_AD_UNIT
UNIT_PAUSEDUnit paused by the publisher.NO_FILL
APP_NOT_VERIFIEDThe app is not verified yet.APP_NOT_VERIFIED
NO_APPROVED_CAMPAIGNNo approved campaign in this format.NO_APPROVED_ADS
NO_CREATIVE_FOR_SIZEApproved campaigns have no creative in this banner size.NO_FILL
TARGETING_MISMATCHApproved campaigns don't target this country, platform or date.NO_FILL
NO_PRICENo price set for this app and format.NO_FILL
BUDGET_EXHAUSTEDApproved campaigns ran out of budget or balance.NO_FILL
FREQUENCY_CAPPEDThe device reached the daily frequency cap.NO_FILL

Other SDK codes

CodeMeaningWhat to do
INVALID_APP_KEYThe app key doesn't match this bundle ID / platform.Use the app key of the correct platform from the dashboard.
NOT_INITIALIZEDThe SDK has not been initialized.Pass appKey to ReinoAdsProvider or call ReinoAds.initialize.
PROVIDER_MISSINGReinoAdsProvider is missing at the root.Wrap your app root with ReinoAdsProvider.
NETWORK_ERRORNetwork error.Load again later.
MEDIA_ERRORThe creative could not be downloaded or played.Load again.
AD_NOT_READYshow() was called before the ad loaded.Show when isLoaded is true.
AD_EXPIREDThe loaded ad expired.Load again.
ALREADY_SHOWINGAnother full-screen ad is open.Retry after the previous ad closes.

Events are not lost

Impression and click events are written to a persistent on-device queue and resent on network errors. The same event is counted only once on the server.