MoPub Ad Network Mediation

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

Client-side Mediation Intro

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.


All libraries need to be explicitly initialized. Please consult the corresponding MoPub initialization guide.

Android Initialization

iOS Initialization

Android Mediation

First, add the following lines to your AndroidManifest.xml file:

<!--Mopub Activity -->
<activity android:name="com.mopub.mobileads.MoPubActivity"
<activity android:name="com.mopub.mobileads.MraidActivity"
<activity android:name="com.mopub.common.MoPubBrowser"
<activity android:name="com.mopub.mobileads.MraidVideoPlayerActivity"

Then add the following lines to your project level build.gradle file. Avoid any duplicate additions:

repositories {
    maven { url "" }
    maven { url '' }
// MoPub  aar dependency inclusion for Mediation
compile('com.mopub:mopub-sdk:[email protected]') {
    transitive = true

MoPub and Proguard Configuration

If you’re using Proguard in your project, add the following lines to your Proguard config file:

-dontwarn com.mopub.**
-keep public class * extends one.mopub.**
-keep class com.mopub.** { *; }

iOS Mediation

Inside the ZIP file, you will find the following plugins – SOMAAdMobPlugin.framework and SOMAMoPubPlugin.framework.

  1. To add Mopub add the respective plugins, as well as the respective third-party SDK.
  2. To add a custom SDK network: Append your custom network class to the SOMAMediationPlugin class, and define your public method with a parameter to receive the data you defined in your SPX custom SDK network account.
  3. If you want to mediate interstitial ads, please override the presentInterstitial method and implement your preferred Interstitial presentation method.

Last Modified: June 11, 2019 at 6:44 pm

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

Privacy Policy | Cookie Policy | Support