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
| Reason | Meaning | SDK code |
|---|---|---|
| UNIT_NOT_FOUND | Unit missing, archived or the app was rejected. | INVALID_AD_UNIT |
| APP_MISMATCH | App key, bundle ID or platform doesn't match the unit. | INVALID_AD_UNIT |
| UNIT_PAUSED | Unit paused by the publisher. | NO_FILL |
| APP_NOT_VERIFIED | The app is not verified yet. | APP_NOT_VERIFIED |
| NO_APPROVED_CAMPAIGN | No approved campaign in this format. | NO_APPROVED_ADS |
| NO_CREATIVE_FOR_SIZE | Approved campaigns have no creative in this banner size. | NO_FILL |
| TARGETING_MISMATCH | Approved campaigns don't target this country, platform or date. | NO_FILL |
| NO_PRICE | No price set for this app and format. | NO_FILL |
| BUDGET_EXHAUSTED | Approved campaigns ran out of budget or balance. | NO_FILL |
| FREQUENCY_CAPPED | The device reached the daily frequency cap. | NO_FILL |
Other SDK codes
| Code | Meaning | What to do |
|---|---|---|
| INVALID_APP_KEY | The app key doesn't match this bundle ID / platform. | Use the app key of the correct platform from the dashboard. |
| NOT_INITIALIZED | The SDK has not been initialized. | Pass appKey to ReinoAdsProvider or call ReinoAds.initialize. |
| PROVIDER_MISSING | ReinoAdsProvider is missing at the root. | Wrap your app root with ReinoAdsProvider. |
| NETWORK_ERROR | Network error. | Load again later. |
| MEDIA_ERROR | The creative could not be downloaded or played. | Load again. |
| AD_NOT_READY | show() was called before the ad loaded. | Show when isLoaded is true. |
| AD_EXPIRED | The loaded ad expired. | Load again. |
| ALREADY_SHOWING | Another 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.
