MoPub Integration Guide

Add the MoPub adapter to your build

ironSource supports both Gradle dependencies and manual download mechanisms.

Gradle:

  1. Make sure the following Maven URL exist in your build.gradle script of your app module .
    repositories
    maven 
    { 
       url 'https://android-sdk.is.com/'
    }
     
    
  2. Add the adapter’s Maven name to your build.gradle script of your app module.
    dependencies
    {
       implementation 'com.ironsource.adapters:mopubadapter:4.3.3' 
       implementation 'com.mopub:mopub-sdk:5.18.0' 
       implementation 'com.mopub.volley:mopub-volley:2.1.0' 
    }

Manual Download

OS Supported SDK Version Rewarded Video Interstitial Banner Adapters and SDK
Android 5.18.0 Adapter
SDK
iOS 5.18.0 Adapter
SDK

  1. Download MoPub Android Adapter. This will add the MoPub Adapter to your build.
  2. Add MoPub Adapter to your Project:
    After you download the Adapter; drop MoPubAdapter aar into the libs folder in your Android Project.
  3. Make sure to add the following to your Gradle build file under the dependencies section:
    dependencies
    {
       implementation(project(':mediationsdk-7.1.10'))
       implementation(project(':mopub-sdk-5.18.0'))
    }

Update AndroidManifest.xml

Manifest Permissions:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Manifest Activities:

Add the following activities inside the <application> tag on your manifest

<activity 
     android:name="com.mopub.common.MoPubBrowser" 
     android:configChanges="keyboardHidden|orientation|screenSize" />