Integrating Banner & Interstitial Third-Party Networks – iOS
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.
To set these integrations up, follow the instructions below.
Note: These instructions assume you have already integrated the MoPub SDK.
1. Clone the `mopub-ios-sdk` repo.
Go into your terminal and type `git clone https://github.com/mopub/mopub-ios-sdk.git`
2. Add the following files (located in the AdNetworkSupport folder) to your Xcode project.:
For AdColony:
`AdColonyInterstitialCustomEvent.h`
`AdColonyInterstitialCustomEvent.m`
For AdMob:
`GoogleAdMob/MPGoogleAdMobBannerCustomEvent.h`
`GoogleAdMob/MPGoogleAdMobBannerCustomEvent.m`
`GoogleAdMob/MPGoogleAdMobInterstitialCustomEvent.h`
`GoogleAdMob/MPGoogleAdMobInterstitialCustomEvent.m`
For Chartboost:
`Chartboost/ChartboostInterstitialCustomEvent.h`
`Chartboost/ChartboostInterstitialCustomEvent.m`
For Conversant (Greystripe):
`Greystripe/GreystripeBannerCustomEvent.h`
`Greystripe/GreystripeBannerCustomEvent.m`
`Greystripe/GreystripeInterstitialCustomEvent.h`
`Greystripe/GreystripeInterstitialCustomEvent.m`
For Facebook Audience Network:
`Facebook/FacebookBannerCustomEvent.h`
`Facebook/FacebookBannerCustomEvent.m`
`Facebook/FacebookInterstitialCustomEvent.h`
`Facebook/FacebookInterstitialCustomEvent.m`
For Millennial:
`Millennial/MPMillennialBannerCustomEvent.h`
`Millennial/MPMillennialBannerCustomEvent.m`
`Millennial/MPMillennialInterstitialCustomEvent.h`
`Millennial/MPMillennialInterstitialCustomEvent.m`
For Vungle:
`Vungle/VungleInterstitialCustomEvent.h`
`Vungle/VungleInterstitialCustomEvent.m`
**IMPORTANT** if you are using Manual Reference Counting, you’ll need to set the `-fobjc-arc` compiler flag on these files.
3. Download the latest ad network SDK and add integrate using the ad networks’ instructions:
For SDK locations, see our Supported Networks Page.
4. Set up the ad network campaign in the MoPub UI and target that ad unit to the MoPub ad unit you set up in your application. Note that AdColony, Facebook Audience Network, and Vungle should be set up as a custom native networks.