Follow

How to Set Up MoPub as an Ad Source

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

  1. Click the Ad Sources tab
  2. Click the + Button to add an ad source

Step 2:  Fill in the MoPub ad source info

  1. Enter a Name for the ad source (example: Mopub Android Interstitial)
  2. Select MoPub SDK in the dropdown box
  3. Select Ad type - Banner HTML for banner ads; Interstitial HTML for Interstitial Ads
  4. Enter the required MoPub Ad unit ID - this ID is created upon adding your app ad unit (example: 5236c2b916ba47f46c000000)
  5. Enter the estimated CPM
  6. Select desired Placement
  7. Set Priority
  8. Select Countries targeting
  9. Select Device targeting
  10. Click Save

Step 3:  Locating the MoPub Adunit ID

  1. Log on to the MoPub platform and click on the Inventory tab
  2. Select your Application
  3. Click on Ad unit
  4. Click on the Code Integration Button
  5. MoPub Adunit ID: Created when you add your app (example: 5236c2b916ba47f46c000000)

Android


 

icon_android-on.png
AerServ SDK
download-sdk.png

 

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 


 

image.jpg
AerServ SDK
download-sdk.png

 

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.

 

 

 

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

Comments