Skip to content

Troubleshooting

The native SDKs write a log message for the main events of each ad (loaded, failed to load, shown, etc.), which is the quickest way to know what is happening.

The messages are written to Logcat with the Wortise tag:

Terminal window
adb logcat -s Wortise

To also see the debug messages, run the following command before launching the app:

Terminal window
adb shell setprop log.tag.Wortise DEBUG

The messages are shown in the Xcode console and in the Console app, with the com.wortise.ads subsystem and the <Wortise> prefix.

MessageMeaning
Device identifier: ...The SDK has been initialized. Include this identifier when contacting support
Interstitial ad failed to load for ad unit ...: NO_FILLAn ad could not be loaded, followed by the name of the error
showAd() called with no ad availableshowAd() has been called without a loaded ad (showAd(from:) on iOS)
Ad load for ... is in cooldown, skipping request (debug level)loadAd() has been ignored because of the cooldown that follows a failed load

The FailedToLoad and FailedToShow events receive an object with the name and message of the error (in the nativeEvent property, in the case of banners). The possible names are:

NameMeaningWhat to do
ADAPTER_MISSINGThe app does not include the adapter that the ad needs (Android)Contact us if it persists
INVALID_PARAMSInvalid and/or missing valuesCheck the ad unit ID and, in banners, the ad size
LOAD_FAILEDThe ad load has failedCheck the previous log messages. Load the ad again later
NO_FILLThere is no ad available for the requestIt is an expected result. Use a test ad unit to verify the integration
NO_NETWORKThere is no network connection (Android)Load the ad again when the device has connection
RENDER_ERRORThe ad could not be renderedLoad a new ad
RENDER_PROCESS_GONEThe WebView process that rendered the ad has ended (Android)Load a new ad
SDK_NOT_INITIALIZEDThe ad has been requested before initializing the SDKSee Ads fail with SDK_NOT_INITIALIZED
SERVER_ERRORThe server returned an errorLoad the ad again later. Contact us if it persists
TIMEOUTThe load took too longCheck the connection of the device and load the ad again later
UNSPECIFIEDUnspecified errorCheck the previous log messages

In native ads, the Promise returned by WortiseNativeAd.createForAdRequest is rejected with the message of the error.

The banner is empty and no event is received

Section titled “The banner is empty and no event is received”

The WortiseBanner component does not load an ad by itself. Call its loadAd() method through a reference, as explained in Banner.

On iOS, also check that the width passed to the adaptive sizes is an integer value (Math.floor(width)).

The ad has been requested before calling RNWortiseSdk.initialize. It usually happens only in the first launch after installing the app, because the effects of the child components are executed before the ones of the root component.

Load the ads once the Promise returned by RNWortiseSdk.wait() (or by initialize) has been resolved.

A fullscreen ad never loads and no event is received

Section titled “A fullscreen ad never loads and no event is received”
  • setAdUnitId() has not been called before loadAd().
  • On Android, the activity has been created again and setAdUnitId() was only called at module level. Call it from an effect.
  • The previous load failed less than 30 seconds ago, so the request has been ignored by the cooldown. The isInCooldown getter reports it.

There is no ad available. Check isAvailable with await before calling showAd(), and wait for the loaded event before showing the first ad.

The listener is being registered on every render. Register it in an effect and remove the subscription in its cleanup, as explained in Best practices.

No factory has been registered natively with the identifier passed to WortiseNativeAdView, or the identifier is different on each platform. See Native.

The app fails when importing the SDK in Expo Go

Section titled “The app fails when importing the SDK in Expo Go”

The SDK contains native code that Expo Go does not include. Use a development build of the app.

ErrorSolution
Could not find com.wortise:android-sdkAdd the Maven repositories listed in SDK integration
AAR metadataRaise the Android Gradle Plugin to 8.9.1 or higher and the compile SDK to 36 or higher
Module was compiled with an incompatible version of KotlinRaise Kotlin to 2.2 or higher
minSdkVersion ... cannot be smaller than version 24 declared in libraryRaise the minimum SDK of the app to 24 or higher

The app crashes on launch after adding the SDK

Section titled “The app crashes on launch after adding the SDK”

The Google App ID has not been configured. Check the com.google.android.gms.ads.APPLICATION_ID element of the AndroidManifest.xml file and the GADApplicationIdentifier key of the Info.plist file, or the androidGoogleAppId and iosGoogleAppId options of the Expo plugin.

Contact us with the SDK logs and the device identifier, so we can review the integration.