Step 1: Adding an Ad Source
To add Millennial Media (SDK) as a mediated ad source, you will need to:
- Create an account with Millennial Media.
- Add Millennial Media (SDK) as an ad source on the AerServ platform using the placementId available from your Millennial Media account.
- The Ad Type will be dependent on which AerServ ad type you are attaching to this specific ad source.
- If using aerBanner, please select Banner HTML.
- If using aerWall, please select Interstitial HTML.
- The adSize is required for Banner HTML only. Options include:
- Smart Banner (Flexible)
- Banner (320x50)
- Large Banner (320x100)
- Medium Rectangle (300x250)
- Full Banner (468x60)
- LeaderBoard (728x90)
- supportOrientations is required for both Banner HTML and Interstitial HTML. Values include:
- All
- Portrait
- 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.
Android
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" />
iOS
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:
AdSupport.framework
AudioToolbox.framework
AVFoundation.framework
CoreBluetooth.framework
CoreGraphic.framework
CoreLocation.framework
CoreTelephony.framework
EventKit.framework
Foundation.framework
libxml2.tbd
MediaPlayer.framework
StoreKit.framework
SystemConfiguration.framework
Step 2. Add the following entry into your info.plist:
<key>NSCalendarsUsageDescription</key>
<string>This interaction requires calendar access.</string>
<key>NSReminderUsageDescription</key>
<string>This interaction will add a reminder.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This feature requires a stored image.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>This feature wants to add a photo to your library.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app wants to display nearby features.</string>
Comments