Floxis Maven/Documentation

Floxis for Google Ad Manager (Android)#

Floxis joins an Android app's Google Ad Manager mediation as a yield partner, through Ad Manager's custom event integration. It uses the same SDK and the same adapter as AdMob, so install and start it as In-app SDK (Android, AdMob and Ad Manager) describes, then add the Floxis entries to your yield groups as below. This guide covers version 0.3.1.

How it works#

  1. Ad Manager builds its mediation chain. For an ad request that a yield group targets, Ad Manager orders the mediation networks in one chain by CPM. Ad Exchange and your own demand keep priority whenever they pay more.
  2. Your chain reaches Floxis. Ad Manager calls the Floxis adapter for a Floxis yield partner, at the Default CPM you gave it.
  3. One Floxis auction. The adapter runs one auction with that CPM as the floor. Floxis fills only with a bid at or above it. Otherwise it answers no-fill at once and Ad Manager moves on.

With more than one Floxis yield partner in a yield group, one auction serves them all, as in AdMob.

Before you start#

  • The Floxis SDK is installed and Floxis.initialize runs in Application.onCreate, before MobileAds.initialize. See In-app SDK (Android, AdMob and Ad Manager), steps 1 and 2. The artifact is tech.floxis:floxis-sdk:0.3.1, on the classic or the Next-Gen Google SDK.
  • Your app loads its Ad Manager ad units as it does today. There is no Floxis code around ad loads.
  • On the Supply page, the app has an endpoint with the integration type Floxis SDK. Open it, scroll to Mediation entries at the bottom of the Connection tab, and choose the Google Ad Manager tab.
  • You need permission to edit yield groups in your Ad Manager network.

Add the Floxis yield partners#

For each format (banner, interstitial, rewarded):

  1. In the panel, choose the format and type the Ad unit name: your name for the placement, for example home_banner, sent as configId. Floxis reports by it. Each entry's parameter is rebuilt as you type.

  2. In Ad Manager, open Delivery → Yield groups and open the yield group for this app and format (Inventory type Mobile app), or create one that targets the app's ad units.

  3. Choose Add yield partner: Other company, Integration type Custom event, Platform Android.

  4. Add one yield partner per Floxis entry, with its Default CPM, Label and Parameter from the panel, and Status Active. The Class name is the same for every entry:

    com.floxis.sdk.FloxisMediationAdapter

    A parameter looks like this:

    { "configId": "home_banner", "floor": "1.50", "min": "0.55" }
  5. Save the yield group.

A yield group holds at most 10 yield partners, so keep Floxis to the one to three entries the panel suggests. The panel prices them from your endpoint's recent bids, never below its Default bid floor.

The one rule that matters. Each entry's parameter floor must equal the Default CPM you type in Ad Manager, in US dollars. The adapter cannot see the CPM you typed, so it serves only bids that pay at least the parameter's floor. Always copy the CPM and the parameter from the same row. If your Ad Manager network uses another currency, type the CPM converted into it and keep the parameter exactly as shown (it stays in USD).

Test#

Use Ad Manager's Ad Inspector on a debug build with testMode = true, and check a fill from a Floxis yield partner, a no-fill that passes down the chain within timeoutMs, and a high-CPM test entry that never serves a bid below its floor. Error codes, consent behaviour and the app-ads.txt line are the same as for AdMob: see In-app SDK (Android, AdMob and Ad Manager) and SDK testing and troubleshooting.

More documentation#

  • In-app SDK (Android, AdMob and Ad Manager): install, start-up, consent, testing and error codes.
  • SDK privacy and consent, SDK testing and troubleshooting, SDK API reference, SDK release notes.
  • Google's own pages: yield groups (support.google.com/admanager/answer/7390828) and custom events for Android (developers.google.com/ad-manager/mobile-ads-sdk/android/custom-events/setup).