Integrate 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
Banner
Interstitial
Rewarded
Native
Features
Adaptive banner
Automatic data collection

Requirements

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

Step 1: Set up Fyber Marketplace

Add new app and ad placement

Sign up or log in to Fyber Console.

Click on the Add App button to add your app.

Manage Apps

Select iOS under Platform, fill out the rest of the form, and click Add Placements.

Enter a name for the new placement in the field labeled Name your Placement and select your desired Placement Type from the dropdown list. Finally, click Save Placement.

Setup

App ID and Placement ID

Open up the left navigation bar by hovering your mouse over it. Then click Apps from the left menu.

Menu

On the App Management page, take note of the App ID next to your app.

App ID

Select your app and navigate to the Placements tab, and click on the copy icon next to Placement Name. Take note of the Placement ID.

Placement ID

Publisher ID, Consumer Key and Consumer Secret

Click on your username from the left menu and select User Profile.

User Profile Menu

Take note of the Publisher ID, Consumer Key, and Consumer Secret as these are needed in the next step.

User Profile

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 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 and Placement ID obtained in the previous section and a Default CPM value.

Click Save at the bottom of the page when done.

Using rewarded ads

In the settings for your rewarded ad unit, provide values for the reward amount and reward type. To provide the same reward to the user no matter which ad network is served, select 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 for iOS, and link the following frameworks to your project:
    • IASDKCore.framework
    • IASDKMRAID.framework
    • IASDKVideo.framework
  • Download the latest version of the Fyber Marketplace adapter from the download link in Changelog 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.

Error codes

If the adapter fails to receive an ad from Fyber, publishers can check the underlying error from the ad response using GADResponseInfo.adNetworkInfoArray under the following class:

GADMediationAdapterFyber

Here are the codes and accompanying messages thrown by the Fyber Marketplace adapter when an ad fails to load:

Error code Reason
0-10 Fyber Marketplace SDK returned an error. See documentation for more details.
101 Fyber Marketplace server parameters configured in the Ad Manager UI are missing/invalid.
102 The requested ad size does not match a Fyber Marketplace supported banner size.
103 Failed to show ad because ad object has already been used.
104 Failed to show Fyber Marketplace ads due to ad not ready.
105 Fyber Marketplace SDK returned an initialization error.

Fyber iOS Mediation Adapter Changelog

Version 8.1.4.0

  • Verified compatibility with Fyber Marketplace SDK version 8.1.4.
  • Added support for the arm64 simulator architecture.

Built and tested with:

  • Google Mobile Ads SDK version 9.1.0.
  • Fyber Marketplace SDK version 8.1.4.

Version 8.1.3.1

  • Verified compatibility with Google Mobile Ads SDK version 9.0.0.
  • Now requires Google Mobile Ads SDK version 9.0.0 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 9.0.0.
  • Fyber Marketplace SDK version 8.1.3.

Version 8.1.3.0

  • Verified compatibility with Fyber Marketplace SDK version 8.1.3.

Built and tested with:

  • Google Mobile Ads SDK version 8.13.0.
  • Fyber Marketplace SDK version 8.1.3.

Version 8.1.2.0

  • Verified compatibility with Fyber Marketplace SDK version 8.1.2.

Built and tested with:

  • Google Mobile Ads SDK version 8.13.0.
  • Fyber Marketplace SDK version 8.1.2.

Version 8.1.1.0

  • Verified compatibility with Fyber Marketplace SDK version 8.1.1.

Built and tested with:

  • Google Mobile Ads SDK version 8.12.0.
  • Fyber Marketplace SDK version 8.1.1.

Version 8.1.0.0

  • Verified compatibility with Fyber Marketplace SDK version 8.1.0.

Built and tested with:

  • Google Mobile Ads SDK version 8.12.0.
  • Fyber Marketplace SDK version 8.1.0.

Version 8.0.0.0

  • Verified compatibility with Fyber Marketplace SDK version 8.0.0.

Built and tested with:

  • Google Mobile Ads SDK version 8.12.0.
  • Fyber Marketplace SDK version 8.0.0.

Version 7.9.0.0

  • Verified compatibility with Fyber Marketplace SDK version 7.9.0.

Built and tested with:

  • Google Mobile Ads SDK version 8.11.0.
  • Fyber Marketplace SDK version 7.9.0.

Version 7.8.9.0

  • Verified compatibility with Fyber Marketplace SDK version 7.8.9.

Built and tested with:

  • Google Mobile Ads SDK version 8.10.0.
  • Fyber Marketplace SDK version 7.8.9.

Version 7.8.8.1

  • Moved ad event didEndVideo to rewarded ad callback IAAdDidReward.

Built and tested with:

  • Google Mobile Ads SDK version 8.9.0.
  • Fyber Marketplace SDK version 7.8.8.

Version 7.8.8.0

  • Now requires minimum iOS version 10.0.
  • Verified compatibility with Fyber Marketplace SDK version 7.8.8.

Built and tested with:

  • Google Mobile Ads SDK version 8.9.0.
  • Fyber Marketplace SDK version 7.8.8.

Version 7.8.7.0

  • Verified compatibility with Fyber Marketplace SDK version 7.8.7.

Built and tested with:

  • Google Mobile Ads SDK version 8.8.0.
  • Fyber Marketplace SDK version 7.8.7.

Version 7.8.6.0

  • Verified compatibility with Fyber Marketplace SDK version 7.8.6.

Built and tested with:

  • Google Mobile Ads SDK version 8.5.0.
  • Fyber Marketplace SDK version 7.8.6.

Version 7.8.5.0

  • Verified compatibility with Fyber Marketplace SDK version 7.8.5.
  • Now requires building against Xcode 12.5 or higher.

Built and tested with:

  • Google Mobile Ads SDK version 8.5.0.
  • Fyber Marketplace SDK version 7.8.5.

Version 7.8.1.0

  • Verified compatibility with Fyber Marketplace SDK version 7.8.1.
  • Relaxed dependency to Google Mobile Ads SDK version 8.0.0 or higher.
  • Added standardized adapter error codes and messages.
  • Updated the adapter to use the .xcframework format.

Built and tested with:

  • Google Mobile Ads SDK version 8.0.0.
  • Fyber Marketplace SDK version 7.8.1.

Version 7.8.0.0

  • Verified compatibility with Fyber Marketplace SDK version 7.8.0.

Built and tested with:

  • Google Mobile Ads SDK version 7.69.0.
  • Fyber Marketplace SDK version 7.8.0.

Version 7.7.3.0

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

Built and tested with:

  • Google Mobile Ads SDK version 7.69.0.
  • Fyber Marketplace SDK version 7.7.3.

Version 7.7.2.0

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

Built and tested with:

  • Google Mobile Ads SDK version 7.67.0.
  • Fyber Marketplace SDK version 7.7.2.

Version 7.7.1.0

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

Built and tested with:

  • Google Mobile Ads SDK version 7.66.0.
  • Fyber Marketplace SDK version 7.7.1.

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.