Ad Source Details
Ad Source: |
|
Ad Formats Supported:
|
aerWall, aerBanner |
Ad Type: | Interstitial HTML or Banner HTML |
Ad Source Type: | SDK Adapter |
Website: | http://www.mopub.com |
Sign Up Page: | https://app.mopub.com/account/register/ |
Support Page: | https://help.mopub.com |
Step 1: Adding an Ad source
- Click the Ad Sources tab
- Click the + Button to add an ad source
Step 2: Fill in the MoPub ad source info
- Enter a Name for the ad source (example: Mopub Android Interstitial)
- Select MoPub SDK in the dropdown box
- Select Ad type - Banner HTML for banner ads; Interstitial HTML for Interstitial Ads
- Enter the required MoPub Ad unit ID - this ID is created upon adding your app ad unit (example: 5236c2b916ba47f46c000000)
- Enter the estimated CPM
- Select desired Placement
- Set Priority
- Select Countries targeting
- Select Device targeting
- Click Save
Step 3: Locating the MoPub Adunit ID
- Log on to the MoPub platform and click on the Inventory tab
- Select your Application
- Click on Ad unit
- Click on the Code Integration Button
- MoPub Adunit ID: Created when you add your app (example: 5236c2b916ba47f46c000000)
Android
AerServ SDK |
Step 1. Locate the MoPub files inside network-support/MoPub/
Step 2. Add mopub-sdk-4.x.x.jar
and mopub-volley-1.1.0.jar to your app's lib folder, i.e. [Project Name]/app/libs
Step 3. Add the following permission to your AndroidManifest.xml
:
<!-- Required by MoPub -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Optional, but Recommended by MoPub -->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Step 4. Add the following activity to your AndroidManifest.xml
:
<activity
android:name="com.mopub.mobileads.MoPubActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name="com.mopub.mobileads.MraidActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name="com.mopub.common.MoPubBrowser"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name="com.mopub.mobileads.MraidVideoPlayerActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
android:name="com.mopub.mobileads.RewardedMraidActivity"
android:configChanges="keyboardHidden|orientation|screenSize" />
iOS
AerServ SDK |
Step 1. Add the MoPub SDK source code in the folder network-support/MoPub/MoPub
into your project.
Add the following libraries and frameworks to Target > Build Phases > Link Binary With Libraries:
AdSupport.framework
CoreGraphic.framework
CoreLocation.framework
CoreMedia.framework
CoreTelephony.framework
Foundation.framework
MediaPlayer.framework
QuartzCore.framework
StoreKit.framework
SystemConfiguration.framework
UIKit.framework
WebKit.framework (Set to Optional)
Please Note
-
The connection is only supported by AerServ, please contact AerServ regarding any questions or concerns.
Comments