How to Set Up ONE by AOL (Formerly Millennial Media) as an Ad Source

Step 1: Adding an Ad Source

To add Millennial Media (SDK) as a mediated ad source, you will need to:

  1. Create an account with Millennial Media.
  2. Add Millennial Media (SDK) as an ad source on the AerServ platform using the placementId available from your Millennial Media account.
  3. The Ad Type will be dependent on which AerServ ad type you are attaching to this specific ad source. 
    1. If using aerBanner, please select Banner HTML
    2. If using aerWall, please select Interstitial HTML.
  4. The adSize is required for Banner HTML only. Options include:
    1. Smart Banner (Flexible)
    2. Banner (320x50)
    3. Large Banner (320x100)
    4. Medium Rectangle (300x250)
    5. Full Banner (468x60)
    6. LeaderBoard (728x90)
  5. supportOrientations is required for both Banner HTML and Interstitial HTML. Values include:
    1. All
    2. Portrait
    3. Landscape

For detailed instructions on setting up an ad source, click here. After successfully setting up the ad source, please continue to the following steps to complete the integration with your Android app.




AerServ SDK


Step 1.   Locate the One by AOL (Formerly Millennial Media) files inside network-support/MillennialMedia/

Step 2.   Add mm-ad-sdk.aar to your app's lib folder, i.e. [Project Name]/app/libs 

Step 3.   Add the following settings inside your application's build.gradle

dependencies {
    compile(name:'mm-ad-sdk', ext:'aar')

Step 4.   Add the following permission to your AndroidManifest.xml

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />




AerServ SDK


Step 1.   Add the One by AOL (Formerly Millennial Media) SDK in the folder network-support/MillennialMedia/MMAdSDK.framework into your project frameworks.

Add the following libraries and frameworks to Target > Build Phases > Link Binary With Libraries:

CoreTelephony.framework EventKit.framework
Foundation.framework libxml2.tbd MediaPlayer.framework StoreKit.framework SystemConfiguration.framework

Step 2.   Add the following entry into your info.plist: 

<string>This interaction requires calendar access.</string>
<string>This interaction will add a reminder.</string>
<string>This feature requires a stored image.</string>
<string>This feature wants to add a photo to your library.</string> <key>NSLocationWhenInUseUsageDescription</key>
<string>This app wants to display nearby features.</string>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request