-
Notifications
You must be signed in to change notification settings - Fork 21
Adapters
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.
- Install the MobFox Android SDK Core.
- Install the MoPub Android SDK.
- Place the MobFox-Android-MoPub-Adapter.jar in your application's libs folder (next to your src folder) and add it as a dependency in your gradle.build file.
- See the docs in MoPub for implementing custom networks.
- For banner ads use the CUSTOM EVENT CLASS
com.mobfox.sdk.adapters.MoPubBannerAdapterand in CUSTOM EVENT CLASS DATA input:
{"invh":"<your-publication-hash>"}
- For interstitial (fullscreen) ads use the CUSTOM EVENT CLASS
com.mobfox.sdk.adapters.MoPubInterstitialAdapterand in CUSTOM EVENT CLASS DATA input:
{"invh":"<your-publication-hash>"}

#AdMob
- Install the MobFox Android SDK Core.
- Install the AdMob Android SDK.
- 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.
- Declare AdMobInterstitialActivity in your application AndroidManifest.xml file. AndroidManifest.xml:
...
<activity android:name="com.mobfox.sdk.adapters.AdMobInterstitialActivity"
android:label="@string/app_name">
</activity>
...- In your AdMob control panel:
- Click the
Monetizetab. - Under
All Appsselect your app. - On the relevant
Ad Unit, click thead sourceslink. - Click the
+ New ad networkbutton. -
Do not select the MobFox network from the list but rather click the
+ Custom eventbutton. - In the form fill:
-
Class Name-GADMAdapterMobFoxorGADInterstitialAdapterMobFoxfor 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).
- Integrate the AdMob Banner or Interstitial you created previously and load it - you should get an ad from the referred MobFox publication.
Check: www.nofisa1.com vuyo1959 affiliates EU