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)

Step 4:  Android Integration

Add mopub-sdk-3.10.0.jar and mopub-volley-1.1.0.jar to your project

File directory:

aerser-android-sdk/network-support/MoPub/mopub-sdk-3.10.0.jar

aerser-android-sdk/network-support/MoPub/mopub-volley-1.1.0.jar

Update AndroidManifest.XML

<activity android:name="com.mopub.mobileads.MoPubActivity" android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize"/>
<activity android:name="com.mopub.mobileads.MraidActivity" android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize"/>
<activity android:name="com.mopub.common.MoPubBrowser" android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize"/>
<activity android:name="com.mopub.mobileads.MraidVideoPlayerActivity" android:configChanges="keyboardHidden|orientation|screenSize|smallestScreenSize"/>

Step 5: IOS integration

Drag the network-support/MoPub/MoPubSDK folder to your Xcode project.  Make sure to check Copy items into destination group's folder option.

Adding Required Frameworks

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

  • AdSupport.framework
  • CoreGraphics.framework
  • CoreLocation.framework
  • CoreTelephony.framework
  • Foundation.framework
  • MediaPlayer.framework
  • QuartzCore.framework
  • StoreKit.framework
  • SystemConfiguration.framework
  • UIKit.framework

 

 

 

  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