Follow

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.

Step 2: Android Integration

To integrate this mediated ad source to your app, you will need to:

  1. Update your manifest file
  2. Add the provided mm-ad-sdk.aar file to your project
  3. Update your gradle file

Step 2.1: Update manifest file

Add the following permissions to your manifest file:

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

Step 2.2: Add Millennial's .aar file to project

On the aerserv-android-sdk-x.xx.x-zip file download, copy the following aar file to the app/libs directory of your project:

aerserv-android-sdk/network-support/MillennialMedia/mm-ad-sdk.aar

Step 2.3: Update gradle 
Add the line in bold to your project's app/build.gradle file:
 
dependencies {
    compile(name: 'mm-ad-sdk', ext: 'aar')
       compile fileTree(dir: 'libs', include: ['*.jar'])
 
Step 2.4: Configure Proguard (Optional)
If your application uses Proguard, you will need to include an entry for Tremor in your configuration:
 
-keep class com.millennialmedia.** { *; }
 
This is in addition to the other AerServ SDK classes that need to be configured. For more information, click here
 
Step 3: iOS Integration
 
To integrate this mediated ad source into your iOS app, you will need to:
  1. Add MMAdSDK.framework to your Xcode project, which can be found in the network-support folder
  2. Ensure the following have been added to your application's target in the Linked Frameworks and Libraries section:
    • MMAdSDK.framework
    • AdSupport.framework
    • AudioToolbox.framework
    • AVFoundation.framework
    • CoreBluetooth.framework
    • CoreGraphics.framework
    • CoreLocation.framework
    • CoreTelephony.framework
    • EventKit.framework
    • EventKitUI.framework
    • Foundation.framework
    • libxml2.tbd
    • MediaPlayer.framework
    • StoreKit.framework
    • SystemConfiguration.framework
    • UIKit.framework

Step 4: Next Steps

Once you've completed these steps, you are now ready to test. AerServ's optimization engine will automatically return the highest paying ads to you. In order to test this integration, you can either temporarily put in a high CPM for this mediated ad source or you can prioritize the ad source through pinning, ensuring that this ad source will serve first.

For instructions on how to find your ad source's CPM, click here.  

For instructions on how to pin your ad source, click here

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk