Facebook Mediation Integration Guide

This guide explains how you can set up a Facebook ad network with the Smaato SDK for both Android and iOS platforms.


Client-side mediation (aka SDK mediation) enables you to mediate owned third-party ad network accounts. In order to do this, you simply need to integrate the Smaato SDK as well as the respective third-party SDK as described below. Finally, you will also need to configure your ad network mediation inside of your SPX account via the “Networks” tab.

Facebook Meditation

First, add the following lines to your project-level build.gradle file.

compile 'com.facebook.android:facebook-android-sdk:4.27'
compile 'com.facebook.android:audience-network-sdk:4.27'

Then add the following lines to your AndroidManifest.xml file:

<!--Facebook Audience Network Interstitial -->
<activity android:name="com.facebook.ads.InterstitialAdActivity"
    android:configChanges="keyboardHidden|orientation|screenSize" />
<!--Facebook Audience Network NativeAd-->
<activity android:name="com.facebook.ads.NativeAdVideoActivity"
    android:configChanges="keyboardHidden|orientation|screenSize" />

Facebook and Proguard Configuration

If you are using Proguard in your project, consider adding the following lines to your Proguard config file.

-keep class com.facebook.ads.** { *; }
-keep class com.facebook.** { *; }

Last Modified: June 11, 2019 at 7:06 pm

© 2005-2020 Smaato, Inc. All Rights Reserved. Smaato® is a registered trademark of Smaato, Inc.

Privacy Policy | Cookie Policy | Support