Skip to content
Asaf Gaber edited this page Dec 8, 2015 · 76 revisions

Adapters enable you to use the MobFox SDK inside other ad networks SDK's that you are using. This way you can display MobFox ads in addition to ads from other host networks.

#AdMob

  1. Install the MobFox Android SDK Core.
  2. Install the AdMob Android SDK.
  3. Place the MobFox-Android-AdMob-Adapter.jar in your application's libs folder (next to your src folder) and add it as a dependency in your gradle.build file.
  4. Declare AdMobInterstitialActivity in your application AndroidManifest.xml file. AndroidManifest.xml:
...

<activity android:name="com.mobfox.sdk.adapters.AdMobInterstitialActivity"
    android:label="@string/app_name">
</activity>

...
  1. In your AdMob control panel:
  • Click the Monetize tab.
  • Under All Apps select your app.
  • On the relevant Ad Unit, click the ad sources link.
  • Click the + New ad network button.
  • Do not select the MobFox network from the list but rather click the + Custom event button.
  • In the form fill:
    • Class Name -GADMAdapterMobFox or GADInterstitialAdapterMobFox for interstitial
    • Label - MobFox
    • Parameter - your MobFox publication hash

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

Clone this wiki locally