Skip to content
Itamar Nabriski edited this page Feb 15, 2018 · 65 revisions

Adapters enable you to use the MobFox SDK inside another ad network SDK. This enables you to display MobFox ads alongside ads from the host SDK.

Ad Network Banner Interstitial Native
MoPub Yes Yes -
AdMob Yes Yes -
Smaato Yes Yes -

AdMob

GAD Ad Type

  1. Install the MobFox iOS SDK in your project.
  2. Add the files in /Adapters/AdMob to your project.
  3. Install the AdMob SDK and also add to your project the Mediation directory which is in the path GoogleMobileAdsSdkiOS-#VERSION_NUMBER#/GoogleMobileAds.framework/Headers/Mediation.
  4. In your AdMob control panel:
  • Select Mediation from Admob menu.
  • Under Mediation group select the desired mediation group to edit, or create a new one.
  • Under Ad units add Ad-unit if you haven't already done so.
  • Under Ad sources, click ADD AD NETWORK.
  • Select MobFox from the list.
  • Set the desired eCPM ad network.
  • Enter your MobFox Publisher Site ID (Inventory hash ID).
  • Click Done
  • Click Save

More AdMob custom event documentation can be found here: (https://developers.google.com/admob/ios/custom-events).

DFP Ad Type

Identical to the GAD Ad above.

MoPub

  1. Install the MobFox iOS SDK in your project.
  2. Add the files in /Adapters/MoPub to your project.
  3. See the docs in MoPub for implementing custom networks.

Banner Ads

Use the CUSTOM EVENT CLASS MoPubAdapterMobFox and in CUSTOM EVENT CLASS DATA input:

{"invh":"<your-publication-hash>"}

Interstitial (fullscreen) Ads

Use the CUSTOM EVENT CLASS MoPubInterstitialAdapterMobFox and in CUSTOM EVENT CLASS DATA input:

{"invh":"<your-publication-hash>"}

Smaato

  1. Install the MobFox iOS SDK in your project.

  2. Add the files in /Adapters/Smaato to your project.

  3. See the docs in Smaato for implementing (https://wiki.smaato.com/display/SPX/iOS#iOS-Banners).

  4. Open Smaato website, select 'Inventory' tab. create a new app (with publisher id) and also declare ad spaces for each required ad type.

  5. Select 'Networks' tab, select 'New Network' and then choose MobFox SDK under 'SDK Client-Side Mediation' (and NOT under 'Adnetwork Mediation' !!).

  6. Create Line Item for each ad type, and under Settings define the following mandatory parameters:

  • Class Name (SmaatoAdapterMobFox, for banner and interstitial ad. SmaatoNativeAdapterMobFox for native ad)
  • Method Name (loadBanner for banner, etc.)
  • Custom Data (define a dictionary contains inventory hash, for example: {"AD_UNIT_ID": "fe96717d9875b9da4339ea5367eff1ec"})

note: AD_UNIT_ID key is has to be defined for inventory hash.

  1. In 'Targeting' choose under the app that has been already defined, the ad space. select '+ Add' and save it.

smaato

Clone this wiki locally