Mediate Facebook

This guide is intended for publishers who want to use the MoPub SDK to load and display ads from Facebook via mediation.

Supported Ad Formats

The following ad formats are supported by Facebook:

  • Banner
  • Interstitial
  • Native
  • Rewarded Video

Setup within the Facebook Audience Network UI

Once logged in to your Facebook dashboard with your Facebook credentials, configure an app to integrate the Facebook Audience Network SDK.

Import the FAN SDK to your project

For iOS Download here
For Android Download here
  • Import the FAN Rewarded Video adapters in your project. Accessible here.

    • For Android, ensure that the path com.mopub.mobileads exists in your project. If you are already mediating other networks, that directory has already been created. Place the FacebookRewardedVideo.java class to that directory.

    • For iOS, create a folder called “AdNetworkSupport” and place the FAN RV adapters there.

Test Ad

While testing your SDK integrations and network setups, it is recommended that you leverage test ad placements. To set up test mode, please reference Facebook’s test ad article for instructions.

Last updated July 11, 2018

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2018 MoPub Inc.