Millennial Media

Millennial Media Ad SDK Integration

This guide explains how you can set up a Millennial Media Ad SDK 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.

Compatible with: Millennial Media 6.8.1

Inside the ZIP file, you will find the following plugin SOMAMillennialMediaPlugin.framework.

  • To add Millennial Media, please add the respective plugin, as well as the respective third-party SDK.
  • To add a custom SDK network: Add 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.
  • If you want to mediate interstitial ads, please override the presentInterstitial method and implement your preferred interstitial presentation method.

Initializing

All libraries need to be explicitly initialized. Please consult the corresponding Millennial Media integration guide.

Android Initialization

iOS Initialization

Android Mediation

In order to mediate your Android platform with the Millennial Media Ad SDK, the following lines need to be added to your AndroidManifest.xml file.

<activity android:name="com.millennialmedia.internal.MMActivity" />
<activity android:name="com.millennialmedia.internal.MMIntentWrapperActivity" />

Then copy the latest .aar file from Millennial Media Android SDK (located here –http://docs.millennialmedia.com/android-ad-sdk/index.html)

Then add the following lines to your project level build.gradle file.

compile project(':mm-ad-sdk')

Millennial Media and Proguard Configuration

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

keep classmembers class com.millennialmedia** {
public *;
}

­keep class com.millennialmedia**

iOS Mediation

<key>NSExceptionDomains</key>
<dict>
    <key>ads.mp.mydas.mobi</key>
    <dict>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <key>NSTemporaryExceptionMinimumTLSVersion</key>
        <string>TLSv1.1</string>
    </dict>
        <key>ads.nexage.com</key>
    <dict>
        <key>NSIncludesSubdomains</key>
        <true/>
        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
        <true/>
        <key>NSTemporaryExceptionMinimumTLSVersion</key>
        <string>TLSv1.1</string>
    </dict>
</dict>

Modified: June 11, 2019 at 7:04 pm