Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Integrating Third Party Ad Networks

steffanc edited this page · 21 revisions

The MoPub SDK can mediate most ad networks through our server-to-server integrations, pre-built adapters, and custom events capabilities. A full list of supported networks can be found here.

We offer pre-built adaptors for AdColony, AdMob, Chartboost, Conversant, Facebook Audience Network, InMobi, Millennial Media, and Vungle. To set these integrations up, follow the instructions below.

Integration Guide for Android

1. Add the custom event files to your project

The extras/com/mopub/mobileads folder contains a set of custom events; simply copy the ones you want into com.mopub.mobileads in your src/ directory. Currently, our SDK supports the following third-party ad types:

  • AdColony
    • Interstiail ads (AdColonyInterstitial.java)
  • Google AdMob (through Play Services)
    • Banner ads (GooglePlayServicesBanner.java)
    • Interstitial ads (GooglePlayServicesInterstitial.java)
  • Chartboost
    • Interstitial ads (ChartboostInterstitial.java)
  • Facebook Audience Network
    • Banner ads (FacebookBanner.java)
    • Interstitial ads (FacebookInterstitial.java)
  • Conversant
    • Banner ads (GreystripeBanner.java)
    • Interstitial ads (GreystripeInterstitial.java)
  • InMobi
    • Banner ads (InMobiBanner.java)
    • Interstitial ads (InMobiInterstitial.java)
  • Millennial Media
    • Banner ads (MillennialBanner.java)
    • Interstitial ads (MillennialInterstitial.java)
  • Vungle
    • Interstitial ads (VungleInterstitial.java)

2. Link the third party SDKs

Incorporate the third party SDKs into your project. This typically involves copying a .jar file to your libs/ directory and adding an entry to your build path. Specific instructions can be found by visiting the ad networks' developer pages.

Full instructions for integrating the ad networks can be found here:

4. Display banner ads and interstitials as usual

No changes are required to any of the other code! Be sure to visit the MoPub dashboard to set up the corresponding network campaigns and target the proper ad units. For additional network tips and other Frequently Asked Questions, take a look at: http://dev.twitter.com/mopub.

Note that AdColony, Conversant, InMobi, Facebook Audience Network, and Vungle should be set up as a custom native networks. Visit our help center for more information.

Something went wrong with that request. Please try again.