Integrating Fyber Marketplace with Mediation

This guide is intended for publishers who want to use the Google Mobile Ads SDK to load and display ads from Fyber Marketplace via mediation. It covers how to add Fyber Marketplace to an ad unit's mediation configuration and how to integrate the Fyber Marketplace SDK and adapter into a Unity app.

Supported ad formats and features

The AdMob mediation adapter for Fyber Marketplace has the following capabilities:

Formats
Banners
Interstitials
Rewarded Video
Native Advanced
Features
Smart Banners
Ad Network Optimization (ANO)
Native Video

Requirements

  • Unity 4 or higher
  • Latest Google Mobile Ads SDK
  • To deploy on Android
    • Android API level 16 or higher
  • To deploy on iOS
    • iOS deployment target of 9.0 or higher
  • A working Unity project configured with Google Mobile Ads SDK. See Get Started for details.

Step 1: Set up Fyber Marketplace

Sign up or log in to Fyber Marketplace's Revenue Desk.

Navigate to the Inventory tab, select Manage Apps / Sites, and click Add App or Site.

Inventory

Select the Platform you want to create and fill out the rest of the form. Then, click Continue on the bottom of the page.

Android

iOS

Next, you will be asked to create an Ad Spot, as well as an Ad Unit ID. Enter your desired Ad Spot Name, the Format of the ad you wish to create, as well as your desired Ad Unit Name. Fill out the rest of the form, then click Save and Continue.

Ad Spot

Next, allocate 100% of the traffic of your Ad Unit to your Ad Spot and click Continue.

Set Traffic

You will be presented with an overview of your application, as well as your created Ad Spots. Take note of the App ID, Spot ID, and Ad Unit ID.

Android

iOS

On Username > User Profile. Take note of the Publisher ID, Consumer Key and Consumer Secret as this will be needed in the next step.

Set Traffic

Step 2: Configure mediation settings for your AdMob ad unit

You need to add Fyber Marketplace to the mediation configuration for your ad unit.

If you're deploying your Unity app to both Android and iOS, you need two AdMob ad units, one for each platform.

Android

First, sign in to your AdMob account. Next, navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add Fyber Marketplace as an ad source.

To create a new mediation group, select Create Mediation Group.

AdMob mediation tab

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled, and then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then click Done.

You should now see the ad units card populated with the ad units you selected.

iOS

First, sign in to your AdMob account. Next, navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add Fyber Marketplace as an ad source.

To create a new mediation group, select Create Mediation Group.

AdMob mediation tab

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled, and then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then click Done.

You should now see the ad units card populated with the ad units you selected.

Add Fyber Marketplace as an ad source

In the Waterfall card, select Add Ad Source.

Select Fyber Marketplace and it should take you to Add ad source: Fyber Marketplace

Ad source

Enable the Optimize switch. Enter the Publisher Id, Consumer Key and Consumer Secret obtained in the previous section. Review and check the Authorization checkbox to set up Ad Network Optimization (ANO) for Fyber Marketplace. Then enter an eCPM value for Fyber Marketplace and click Continue.

Ad source

Enter the Application ID, Ad Spot ID, and the Ad Unit ID obtained from the previous step. Finally, click Done.

Android

iOS

Using rewarded video ads

In the settings for your rewarded video ad unit, provide values for the reward amount and reward type. Then, to ensure you provide the same reward to the user no matter which ad network is served, check the Apply to all networks in Mediation groups box.

Rewarded

If you don't apply this setting, the Fyber Marketplace adapter passes back the reward specified in the Fyber Marketplace dashboard when creating the placement.

For more information on setting reward values for AdMob ad units, see Create an ad unit.

Step 3: Import the Fyber Marketplace SDK and adapter

Download the latest version of Google Mobile Ads mediation plugin for Fyber and extract GoogleMobileAdsFyberMediation.unitypackage from the zip file.

In your Unity project editor, select Assets > Import Package > Custom Package and find the GoogleMobileAdsFyberMediation.unitypackage file you downloaded. Make sure all the files are selected and click Import.

Then, select Assets > Play Services Resolver > Android Resolver > Force Resolve. The Unity Play Services Resolver library will perfrom dependency resolution from scratch and copy the declared dependencies into the Assets/Plugins/Android directory of your Unity app.

Optional steps

Under the Google EU User Consent Policy, you must ensure that certain disclosures are given to, and consents obtained from, users in the European Economic Area (EEA) regarding the use of device identifiers and personal data. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR). When seeking consent, you must identify each ad network in your mediation chain that may collect, receive, or use personal data and provide information about each network's use. Google currently is unable to pass the user's consent choice to such networks automatically.

The section below shows you how to enable or disable personalized ads for Fyber Marketplace.

The Google Mobile Ads mediation plugin for Fyber Marketplace version 1.1.0 added the Fyber class with the SetGDPRRequired() and SetGDPRConsentString() methods, allowing you to pass consent information to Fyber Marketplace manually. The following sample code demonstrates how to pass these parameters to the Fyber Marketplace adapter:

using GoogleMobileAds.Api.Mediation.Fyber;
// ...

Fyber.SetGDPRConsent(true);
Fyber.SetGDPRConsentString("myGdprConsentString");

Consult Fyber Marketplace's GDPR article for more information.

Fyber Unity Mediation Plugin Changelog

Version 1.5.1

Version 1.5.0

Version 1.4.0

Version 1.3.0

Version 1.2.3

Version 1.2.2

Version 1.2.1

Version 1.2.0

Version 1.1.0

Version 1.0.0