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 an iOS app.

Supported ad formats and features

The Ad Manager mediation adapter for Fyber Marketplace has the following capabilities:

Formats
Banners
Interstitials
Rewarded Video
Native Ads
Features
Smart banners
Automatic Data Collection
Native Video

Requirements

  • iOS deployment target of 8.0 or higher
  • Latest Google Mobile Ads SDK

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 on the Add App or Site button.

Manage Apps

Select iOS as the Platform, fill out the rest of the form, and click Continue.

When prompted to create an Ad Spot and Ad Unit ID, enter your desired Ad Spot Name, the Format of the ad you wish to create, your desired Ad Unit Name, and fill out the rest of the form. 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.

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 Ad Manager ad unit

Sign in to your Ad Manager account. Navigate to Delivery > Yield groups and click the New yield group button.

Enter a unique Name for your yield group, set the Status to Active, select your Ad Format, and set the Inventory type to Mobile App. Under the Targeting > Inventory section, select the Ad Unit ID to which you want to add mediation.

Next, click the Add yield partner button.

If you already have a Yield partner for the Fyber Marketplace, you can simply select it. Otherwise, select Create a new yield partner.

Select Fyber Marketplace as the Ad network and enter a unique Name. Enable Mediation and turn on Automatic data collection. Enter the Publisher ID, Consumer Secret and Consumer Key obtained in the previous section. Click Save when done.

Once the Yield partner is selected, choose Mobile SDK Mediation as the Integration type, iOS as the Platform, and Active as the Status. Enter the Application ID, Ad Spot ID and Ad Unit ID obtained in the previous section and a Default CPM value.

Click Save at the bottom of the page when done.

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

Add the following line to your project's Podfile:

pod 'GoogleMobileAdsMediationFyber'

From the command line run:

pod install --repo-update

Manual integration

  • Download the latest version of the Fyber Marketplace SDK, and link IASDKCore.framework, IASDKMRAID.framework and IASDKVideo.framework in your project.
  • Download the latest version of the Fyber Marketplace adapter and link FyberAdapter.framework in your project.
  • Add the following frameworks to your project:
    • libxml2.2.tbd

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.

Fyber Marketplace contains an API to allow publishers to forward user consent to their SDK. The following sample code shows how to pass consent information to the Fyber Marketplace SDK manually. Should you choose to pass consent information to the Fyber Marketplace SDK manually, it is recommended that this code is called prior to requesting ads via the Google Mobile Ads SDK.

#import <IASDKCore/IASDKCore.h>
// ...

[IASDKCore.sharedInstance setGDPRConsent:YES];
[IASDKCore.sharedInstance setGDPRConsentString:@"myGdprConsentString"];

Visit Fyber Marketplace's GDPR implementation guide and GDPR and You article for more information.

Fyber iOS Mediation Adapter Changelog

Version 7.6.4.0

  • Verified compatibility with Fyber Marketplace SDK version 7.6.4.
  • Now requires Google Mobile Ads SDK version 7.65.0 or higher.
  • Added GADMAdapterFyberExtras class, enabling publishers to pass keywords and userData to Fyber Marketplace SDK.

Built and tested with:

  • Google Mobile Ads SDK version 7.65.0.
  • Fyber Marketplace SDK version 7.6.4.

Version 7.6.3.0

  • Verified compatibility with Fyber Marketplace SDK version 7.6.3.

Built and tested with:

  • Google Mobile Ads SDK version 7.64.0.
  • Fyber Marketplace SDK version 7.6.3.

Version 7.6.2.0

  • Verified compatibility with Fyber Marketplace SDK version 7.6.2.
  • Now requires Google Mobile Ads SDK version 7.64.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 7.64.0.
  • Fyber Marketplace SDK version 7.6.2.

Version 7.6.0.0

  • Verified compatibility with Fyber Marketplace SDK version 7.6.0.
  • Now requires Google Mobile Ads SDK version 7.62.0 or higher.
  • Updated the adapter to support inline adaptive banner requests.
  • Added support for rewarded HTML.
  • Added new reward callback: IAAdDidReward (for both rewarded video and rewarded HTML). IAVideoCompleted is no longer used for rewarding.

Built and tested with:

  • Google Mobile Ads SDK version 7.62.0.
  • Fyber Marketplace SDK version 7.6.0.

Version 7.5.6.1

  • Temporarily removed Fyber Marketplace SDK-specific logging.

Built and tested with:

  • Google Mobile Ads SDK version 7.60.0.
  • Fyber Marketplace SDK version 7.5.6.

Version 7.5.6.0

  • Verified compatibility with Fyber Marketplace SDK version 7.5.6.
  • Updated the minimum required Google Mobile Ads SDK version to 7.60.0.

Built and tested with:

  • Google Mobile Ads SDK version 7.60.0.
  • Fyber Marketplace SDK version 7.5.6.

Version 7.5.5.0

  • Verified compatibility with Fyber Marketplace SDK version 7.5.5.
  • Updated the minimum required Google Mobile Ads SDK version to 7.59.0.

Built and tested with:

  • Google Mobile Ads SDK version 7.59.0.
  • Fyber Marketplace SDK version 7.5.5 .

Version 7.5.4.0

  • Verified compatibility with Fyber Marketplace SDK version 7.5.4.
  • Removed support for the i386 architecture.

Built and tested with:

  • Google Mobile Ads SDK version 7.57.0.
  • Fyber Marketplace SDK version 7.5.4.

Version 7.5.3.0

  • Verified compatibility with Fyber Marketplace SDK version 7.5.3.

Built and tested with:

  • Google Mobile Ads SDK version 7.55.0.
  • Fyber Marketplace SDK version 7.5.3.

Version 7.5.1.0

  • Verified compatibility with Fyber Marketplace SDK version 7.5.1.
  • Fixed a crash that occurred when initializing the Fyber SDK.

Built and tested with:

  • Google Mobile Ads SDK version 7.55.0.
  • Fyber Marketplace SDK version 7.5.1.

Version 7.5.0.0 (Deprecated)

  • This version has been removed. Please use version 7.5.1.0 or higher.
  • Verified compatibility with Fyber Marketplace SDK version 7.5.0.
  • Adapter will now initialize the Fyber SDK before making an ad request if the Fyber SDK has not been initialized yet.

Built and tested with:

  • Google Mobile Ads SDK version 7.53.0.
  • Fyber Marketplace SDK version 7.5.0.

Version 7.4.0.0

  • Initial release!
  • Added support for banner, interstitial and rewarded ad formats.

Built and tested with:

  • Google Mobile Ads SDK version 7.52.0.
  • Fyber Marketplace SDK version 7.4.0.