Floxis Maven/Documentation

Floxis SDK testing and troubleshooting guide#

This guide helps you check a Floxis SDK integration before release and find out why Floxis ads are not showing. It covers every Floxis adapter: AdMob and Google Ad Manager (on Android, classic and Next-Gen) and Unity LevelPlay, on Android and iOS.

Setup for each integration is in its own guide: In-app SDK (Android, AdMob and Ad Manager), In-app SDK (iOS, AdMob and Ad Manager), In-app SDK (Google Ad Manager) and In-app SDK (Unity LevelPlay). Consent rules are in SDK privacy and consent, and every class and code is listed in SDK API reference.

Every Android artifact is released as version 0.3.1. On iOS, the Swift package https://github.com/floxis-tech/floxis-sdk-ios is version 0.3.3, with the products FloxisSDK (AdMob and Ad Manager) and FloxisSDKLevelPlay (Unity LevelPlay).

How a Floxis ad gets to the screen#

Floxis is a network inside the mediation you already run. Most problems sit at one of these four steps, so check them in order:

  1. Initialise. Floxis.initialize connects to the Floxis endpoint for your seat and region (LevelPlay uses its network keys instead). Until this finishes, every Floxis entry reports NOT_INITIALIZED (203) and your mediation moves on.
  2. Mediation reaches Floxis. Your mediation calls a Floxis entry only when its waterfall gets down to that entry's eCPM. An entry placed above your main demand, or with the wrong class name, is the most common reason Floxis never runs.
  3. Auction. The first Floxis entry of an ad request runs one Floxis auction at the ad unit's lowest Floxis floor (min) and holds the answer for up to 10 seconds. Each Floxis entry serves the held bid only if it pays at least that entry's floor. Otherwise it reports a no-fill straight away.
  4. Render. The adapter renders the Floxis ad and reports the impression to your mediation.

A Floxis entry that answers no-fill is normal: it means no bid paid that entry's price, and your mediation went on to the next source.

1. Turn on test mode and logs#

AdapterTest trafficLogs
Android: AdMob, Ad ManagerFloxisConfig(..., debug = true, testMode = true)adb logcat -s Floxis
iOS: AdMob, Ad ManagerFloxisConfiguration(..., debug: true, testMode: true)Xcode console lines that start with Floxis, or Floxis.shared.onDiagnostic
Unity LevelPlayNo test switch: every LevelPlay auction is live.LevelPlay callbacks and LevelPlay.setAdaptersDebug(true)

Android, in a debug build, in Application.onCreate before your ad server starts:

Floxis.initialize(
    applicationContext,
    FloxisConfig(seat = "YOUR_SEAT", region = "us-e", debug = true, testMode = true),
) { status, description -> Log.d("FloxisTest", "init $status $description") }

iOS, in a build you run from Xcode:

let configuration = try FloxisConfiguration(seat: "YOUR_SEAT", region: "us-e", debug: true, testMode: true)
Floxis.shared.onDiagnostic = { diagnostic in print("Floxis", diagnostic.code, diagnostic.message) }
Floxis.shared.initialize(configuration) { status, detail in print("Floxis init:", status, detail ?? "") }

What test mode does:

  • It sets the OpenRTB test flag on each auction, which marks the auction as not billable. Floxis bills neither side of a test auction: a test ad that renders earns you no revenue, and Floxis does not charge the buyer for it. Buyers see the flag too, but not every buyer honours it in its own systems, so keep test builds to test devices. Many buyers do not bid on test traffic, so few or no Floxis fills in a test build is normal.
  • It only works in a debuggable build. On Android that is a build with android:debuggable set, which debug builds have by default. On iOS it is the Simulator, or a device build signed with a development profile. A release, App Store or TestFlight build ignores testMode and logs FLX-105, so the setting can never send test traffic from production.
  • It does not change how an entry decides: a test bid still serves only at or above the entry's floor.

What debug does:

  • Android: turns on the debug log lines below and raises Prebid Mobile's log level to debug. Warnings log even when debug is off.
  • iOS: prints every diagnostic to the console. onDiagnostic receives them whether debug is on or off.
  • It never changes what is sent to Floxis. Turn it off before release to keep the log quiet.

Before you release, set testMode back to false and remove any test device IDs you added to your ad server SDK.

2. Read the log#

Android#

Every Floxis line has the tag Floxis and starts with a code. Lines marked warning always log; debug lines need debug = true.

CodeLevelMeaning
FLX-100debugInitialisation started. Shows the auction and status URLs for your seat.
FLX-101debugInitialisation finished, with SUCCEEDED, SERVER_STATUS_WARNING or FAILED.
FLX-102warningenabled = false in FloxisConfig, so Floxis did not start.
FLX-103warningInitialisation threw an error, the bundled scripts could not be put in place, or another Floxis setup in the app uses a different seat or region.
FLX-104warningRetrying a failed initialisation (at most every 30 seconds, on the next ad load).
FLX-105warningtestMode ignored because the app is not debuggable.
FLX-200debugOne auction finished, with its result. Also logged when a held bid is below an entry's floor: bid 0.80 below entry floor 1.50.
FLX-201debugAuction skipped, with the reason (SKIPPED_DISABLED, SKIPPED_NO_CONSENT or SKIPPED_NOT_INITIALIZED).
FLX-203warningAuction error.
FLX-400warningA full-screen show was refused: the ad was already shown, expired, not ready, or Floxis was switched off since it loaded.

A healthy start and two Floxis entries of one ad request, in a debug build:

D Floxis  : FLX-100 auction=https://...?seat=YOUR_SEAT status=...
D Floxis  : FLX-101 SUCCEEDED ...
D Floxis  : FLX-200 AuctionOutcome(status=BID, ...)
D Floxis  : FLX-200 bid 0.80 below entry floor 1.50

Here the auction ran once, at the ad unit's min. The $1.50 entry passed, and the next Floxis entry, priced at or below $0.80, served the bid.

To see what Prebid Mobile did as well, filter on both tags:

adb logcat | grep -E "Floxis|PrebidMobile"

iOS#

With debug: true, each diagnostic prints as Floxis <code> <message>; Floxis.shared.onDiagnostic receives them whether debug is on or off. iOS uses these codes:

CodeMeaning
FLX-101Initialisation finished.
FLX-103Initialisation failed, with the reason.
FLX-105testMode ignored because the build is not development-signed.
FLX-201An entry passed without an auction: Floxis off, personalised ads off, or not initialised.
FLX-202A full-screen show was refused because the bid expired.
FLX-203An entry failed, with its code: an invalid parameter, a timeout, a network, server or render error.
FLX-204A held bid was below an entry's floor.
FLX-400A full-screen show was refused, or a Floxis banner was hidden after setEnabled(false) or setPersonalizedAds(false).

An entry with no bid prints nothing.

Unity LevelPlay#

The LevelPlay adapter has no log tag of its own. Every failure reaches LevelPlay's load, show or init callback, with the Floxis code from section 6 in the message. Turn on LevelPlay.setAdaptersDebug(true) in a debug build to see LevelPlay's adapter log.

3. Check the three outcomes before release#

Do this once per platform and format, on a test device, with the 1 to 3 entries copied from your endpoint's Mediation entries panel:

  1. A fill. Load the ad unit until a Floxis entry serves. Your ad server's tool (section 4) shows the Floxis entry as the source that filled, and your own ad listener gets its usual load and impression events.
  2. A pass down the waterfall. Load when Floxis has no bid (for example with testMode on, where few buyers bid). The Floxis entry reports NO_FILL (204), BELOW_FLOOR (205) or TIMEOUT (206) within timeoutMs, and the next source in your mediation serves or your ad server reports its own no-fill.
  3. A floor that holds. Add a test entry with a high eCPM and the same high floor in its parameter, for example {"configId":"home_banner","floor":"200.00"} at an eCPM of 200. It must never serve: each load reports BELOW_FLOOR or NO_FILL from that entry, and FLX-200 bid ... below entry floor 200.00 when a bid came back. Remove the test entry afterwards.

If all three behave, the integration is ready. Tell your account manager your configId names and the release date, so the first live traffic can be checked with you.

4. Use your ad server's debugging tools#

AdMob and Ad Manager: Ad Inspector#

Ad Inspector shows each ad request, the waterfall or yield group, and which ad source filled. Open it from a test device:

MobileAds.openAdInspector(activity) { error -> Log.d("FloxisTest", "Ad Inspector closed: $error") }

On Next-Gen, call MobileAds.openAdInspector with an OnAdInspectorClosedListener. On iOS, call MobileAds.shared.presentAdInspector(from: viewController) { error in }.

Register your phone as a test device first, in the AdMob or Ad Manager UI or in code:

MobileAds.setRequestConfiguration(
    RequestConfiguration.Builder().setTestDeviceIds(listOf("YOUR_TEST_DEVICE_ID")).build()
)

On Next-Gen, the same RequestConfiguration.Builder().setTestDeviceIds(...) comes from com.google.android.libraries.ads.mobile.sdk.common. On iOS, set MobileAds.shared.requestConfiguration.testDeviceIdentifiers = ["YOUR_TEST_DEVICE_ID"]. Google prints your device ID in the log the first time an ad loads.

Keep in mind:

  • Google's demo ad unit IDs have no Floxis entries, so they can never show a Floxis ad. Test with your own ad units.
  • Mediated ads, Floxis included, do not carry Google's "Test Ad" label.
  • In Ad Inspector, each Floxis entry shows under the label you gave it. A Floxis entry that did not fill shows its error with the domain tech.floxis.sdk and the code from section 6.
  • Ad Manager: the yield group's delivery troubleshooting in the web UI shows which yield partner served. A yield group holds at most 10 partners.

To read which source filled from code, use your ad's response info. When Floxis filled, the loaded adapter class is com.floxis.sdk.FloxisMediationAdapter:

adView.adListener = object : AdListener() {
    override fun onAdLoaded() {
        Log.d("FloxisTest", "served by ${adView.responseInfo?.loadedAdapterResponseInfo?.adapterClassName}")
    }
}

Unity LevelPlay: integration test suite#

LevelPlay.setMetaData("is_test_suite", "enable")   // before LevelPlay init
LevelPlay.setAdaptersDebug(true)
// after LevelPlay init:
LevelPlay.launchTestSuite(this)

The test suite shows the networks LevelPlay set up for the app. If Floxis is missing, check that the Floxis custom network is added with the network key from your account manager, and that custom adapters are enabled on your LevelPlay account (Unity support enables them). Remove both test settings before release.

On iOS the suite lists the Floxis adapter with the version 0.3.3 once the network key is added. LevelPlay loads the ISFloxisCustomAdapter classes from the FloxisSDKLevelPlay product, so a missing Floxis network on iOS usually means the product is not linked to your app target.

5. Common problems#

What you seeLikely causeFix
The Floxis entry is never called (nothing in Ad Inspector or the log)The entry sits below a source that always fills, the ad unit is not in the mediation group or yield group, the group is for another platform or format, or the class name is wrong.Check the entry's position and the ad unit's group in your ad server. Copy the class name from the Mediation entries panel. Confirm in Ad Inspector or the Mediation Debugger.
Floxis fills ahead of a source that would have paid moreThat source's eCPM in your waterfall is set below what it really pays.Set each source's eCPM to what it really pays, from your ad server's reports, and keep each Floxis entry at the eCPM the panel suggests or higher.
INVALID_PARAMETER (101)The parameter has a typo, a missing configId or floor, a floor with more than 2 decimals or outside 0.01 to 1000.00, a min above floor, or it comes from an SDK before 0.3.0.Copy the parameter again from the Mediation entries panel, as it is.
NOT_INITIALIZED (203), FLX-201 SKIPPED_NOT_INITIALIZEDFloxis.initialize is missing, or runs after the first ad loads.Call Floxis.initialize in Application.onCreate, before MobileAds.initialize.
FLX-101 FAILED or FLX-103No network, a wrong seat or region, or a blocked connection.Check the seat and region against your endpoint's Mediation entries panel. The SDK retries on a later ad load, at most every 30 seconds.
FLX-101 SERVER_STATUS_WARNINGThe status check did not answer as expected.Auctions still run. If it persists, contact support with the log.
CONFIG_MISMATCH (102), or FLX-103 naming another seat or regionFloxis.initialize and the LevelPlay network keys use different seats or regions.Use one seat, region and timeout everywhere in the app.
DISABLED (201), FLX-102enabled = false, or Floxis.setEnabled(false) from your remote config.Call Floxis.setEnabled(true) when Floxis should run.
Every Floxis entry NO_CONSENT (202)personalizedAds = false or Floxis.setPersonalizedAds(false), or LevelPlay reported no consent.Expected: Floxis does not run for that user. Update the switch when consent changes.
BELOW_FLOOR (205) on the top Floxis entryFloxis had a bid, but it paid less than that entry's floor.Expected. A lower Floxis entry serves it if the bid pays at least that entry's floor.
Mostly NO_FILL (204) in a test buildTest traffic gets few bids.Normal. Check a release build with live traffic, together with your account manager.
Mostly NO_FILL from the EUBuyers rarely bid on EU traffic without a TCF consent string.Run your CMP and grant consent on the test device, or test from outside the EU.
TIMEOUT (206)The device's network is slow or timeoutMs is short.Test on a good connection. If many live users time out, raise timeoutMs (200 to 10,000). Your mediation waits that long at the first Floxis entry of an ad request.
Floxis fills at a price that does not match the eCPM in your ad serverThe eCPM typed in the ad server differs from the floor in the parameter, or the ad server account is not in USD.The floor must equal the entry's eCPM in USD. In a non-USD account, type the converted eCPM and keep the parameter as the panel shows it.
The panel's prices changed but the app still serves the old onesThe ad server still has the old entries.Update the eCPM and the parameter together in your ad server. Both come from the same row in the panel.
Floxis ads show on Android but not on iOSThe iOS mediation group has no Floxis entries, or uses the Android class name.Add the entries to the iOS group with the class name FloxisMediationAdapter.
Banner INVALID_PARAMETER on a narrow slotThe banner slot is narrower than 320 dp.Use a slot at least 320 dp wide, or a standard size.
Interstitial or rewarded loads but INTERNAL (302) at showThe ad server showed it without an Activity.Show full-screen ads from an Activity.
EXPIRED (401) at showThe ad was loaded too long before it was shown. A Floxis bid lasts until the bid's own expiry, 5 minutes by default.Load closer to the moment you show, and reload after an expiry.
POLICY_CHANGED (207)Floxis was disabled or personalised ads were turned off during the auction or before the show.Expected. The next load follows the new setting.
LevelPlay: Missing configId, or a missing floorAn instance has no configId or floor key.Set configId, floor and min on each instance from the panel, and the instance's Rate equal to floor.
LevelPlay: Invalid Floxis seat, region, or timeoutMsAn app-level key of the Floxis custom network is wrong.Type plain values: seat from your endpoint, region such as us-e, timeoutMs a whole number from 200 to 10,000. Leave the last two blank for the defaults.
LevelPlay: advertising is restricted by the privacy signalsLevelPlay consent is false, GDPR applies without Purpose 1 or consent for Floxis (vendor 1609), or a US privacy or GPP opt-out is recorded.Expected. See SDK privacy and consent.
LevelPlay logs failed to load <name>The custom network was added with a key that does not belong to Floxis, or the adapter is not in the app.Add floxis-sdk-levelplay and use the network key from your account manager.
Battery, dark-mode and session signals missing from requestsThe consent gate is closed: they need personalised ads on, Purpose 1 and consent for Floxis (vendor 1609) where GDPR applies, and no opt-out in the US privacy string or an applicable GPP US section.Expected. See SDK privacy and consent.
Android: the battery and dark-mode fields are not in device.ext of a request you capturedPrebid Mobile on Android drops device.ext from what the SDK hands it, so the SDK sends these fields in user.ext.floxis.device. The exchange moves them into device.ext before buyers see the request.Look under user.ext.floxis.device. iOS sends them in device.ext directly.
user.ext.impdepth is back at 1More than 30 minutes without a Floxis auction that carried the signals starts a new session.Expected. See SDK privacy and consent.
R8 release build fails on LoudnessCodecControllerThe app compiles against API 34.Set compileSdk = 35.
Floxis works in debug but not in a minified release buildYour build ignores keep rules from libraries.The SDK ships its own R8 rules, so most apps add none. If your build skips library rules, add the rules below.

R8 rules, only if your build skips the rules shipped inside the SDK:

-keep class com.floxis.sdk.** { public *; }

For LevelPlay, also keep the four com.ironsource.adapters.custom.floxis classes listed in the In-app SDK (Unity LevelPlay) guide.

6. Error reference#

Every Floxis adapter reports the same codes, with the domain tech.floxis.sdk. AdMob and Ad Manager show the code itself; LevelPlay maps it to its own error and keep the Floxis code in the message (see **SDK API reference**).

CodeNameMeaningWhat to do
101INVALID_PARAMETERThe entry's parameter is missing, invalid or from an older SDK, or no supported banner size fits.Copy the parameter again from the Mediation entries panel.
102CONFIG_MISMATCHTwo Floxis setups in the app use different seats or regions.Use one seat and region everywhere.
201DISABLEDFloxis is switched off. No auction ran.Expected while the kill switch is on.
202NO_CONSENTPersonalised ads are off, or your mediation reported no consent. No auction ran.Expected for that user.
203NOT_INITIALIZEDFloxis.initialize has not run or has not finished. No auction ran.Call it in Application.onCreate, before your ad server starts.
204NO_FILLNo buyer bid, or another Floxis entry of the same ad request already served the bid.Normal. Your mediation moves on.
205BELOW_FLOORFloxis had a bid below this entry's floor.Normal. A lower Floxis entry may serve it.
206TIMEOUTNo answer within timeoutMs.Raise timeoutMs only if timeouts are frequent on live traffic.
207POLICY_CHANGEDFloxis was disabled or personalised ads turned off during the auction or before the show.Expected.
208NETWORKThe device could not reach Floxis.Check the connection.
209SERVERFloxis answered with an error.If it persists, contact support with the time and your seat.
301RENDER_FAILEDThe ad could not be rendered.If it repeats, contact support with the log.
302INTERNALAn unexpected failure. The message says what, for example a show without an Activity.Fix the cause named in the message, or contact support.
401EXPIREDThe bid expired before the show.Load closer to the show.
402ALREADY_SHOWNThis ad was already shown.Load a new one.
403NOT_READYThe ad is not loaded, or was destroyed.Load before you show.

Initialisation results#

Android FloxisInitStatusiOS FloxisInitializationStatusMeaning
SUCCEEDED.succeededReady.
SERVER_STATUS_WARNINGnone: iOS runs no status checkReady; the status check answered unexpectedly.
FAILED.failedNot ready. Retried on a later ad load.
DISABLED.disabledenabled is false.

7. FAQ#

Does test mode cost me or buyers money? No, not through Floxis. Test mode sets the OpenRTB test flag, and Floxis bills neither side of a test auction: a test ad that renders earns you no revenue and Floxis does not charge the buyer for it. Not every buyer honours the flag in its own systems, so run test builds on test devices only. It only works in debuggable builds, so production traffic is never marked as test.

Can I leave debug = true in a release build? It never changes what is sent, but turn it off. On Android it also raises Prebid Mobile's log level, which writes far more to the device log.

Why don't I see a "Test Ad" label on Floxis ads? Google only labels its own test ads. Mediated ads, Floxis included, show the real creative.

Can I test with Google's demo ad units? No. A Floxis ad can only show through your own ad units that have Floxis entries.

Why does a Floxis entry with a higher eCPM pass while a lower one fills? All Floxis entries of an ad request share one auction. Each entry serves the bid only when it pays at least that entry's floor, so a $1.20 bid passes the $1.50 entry and serves at the $1.00 entry.

Does every Floxis entry run its own auction? No. The first Floxis entry of an ad request runs the auction, and the others in the same ad request answer from it within 10 seconds, with no new request.

How long can I keep a loaded interstitial or rewarded ad? For a Floxis fill, until the bid expires (the buyer's expiry, 5 minutes by default). The show then fails with EXPIRED.

Do I need to add R8 or ProGuard rules? No, unless your build skips the rules that come inside the SDK.

8. Contact support#

First check that you are on the newest release: https://maven.floxis.tech lists the published versions of each Android artifact.

Email [email protected], or your Floxis account manager. Include:

  1. The app's package name or bundle ID, and the endpoint name on the Supply page.
  2. The SDK and version (on Android, Floxis.SDK_VERSION returns it; on iOS, Floxis.sdkVersion), and your ad server or mediation SDK and version.
  3. The platform, device model and OS version.
  4. The entry's parameter and its eCPM in your ad server, and the ad unit ID.
  5. A log from app start to the problem, with debug = true:
    • Android: adb logcat -d | grep -E "Floxis|PrebidMobile" > floxis-log.txt
    • iOS: the Xcode console lines starting with Floxis, or your onDiagnostic output.
    • LevelPlay: the load and show callback messages and the LevelPlay adapter log.
  6. The time of the ad request, with the time zone.
  7. A screenshot of Ad Inspector or the LevelPlay test suite, if you used one.

Remove user identifiers, consent strings and advertising IDs from logs before you send them.