-
Notifications
You must be signed in to change notification settings - Fork 12
Adapters
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 | - |
- Install the MobFox iOS SDK in your project.
- Add the files in /Adapters/AdMob to your project.
- Install the AdMob SDK and also add to your project the
Mediationdirectory which is in the path GoogleMobileAdsSdkiOS-#VERSION_NUMBER#/GoogleMobileAds.framework/Headers/Mediation. - In your AdMob control panel:
- Select
Mediationfrom Admob menu. - Under
Mediation groupselect the desired mediation group to edit, or create a new one. - Under
Ad unitsadd Ad-unit if you haven't already done so. - Under
Ad sources, clickADD AD NETWORK. - Select
MobFoxfrom the list. - Set the desired
eCPMad 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).
Identical to the GAD Ad above.
- Install the MobFox iOS SDK in your project.
- Add the files in /Adapters/MoPub to your project.
- See the docs in MoPub for implementing custom networks.
Use the CUSTOM EVENT CLASS MoPubAdapterMobFox and in CUSTOM EVENT CLASS DATA input:
{"invh":"<your-publication-hash>"}
Use the CUSTOM EVENT CLASS MoPubInterstitialAdapterMobFox and in CUSTOM EVENT CLASS DATA input:
{"invh":"<your-publication-hash>"}
-
Install the MobFox iOS SDK in your project.
-
Add the files in /Adapters/Smaato to your project.
-
See the docs in Smaato for implementing (https://wiki.smaato.com/display/SPX/iOS#iOS-Banners).
-
Open Smaato website, select 'Inventory' tab. create a new app (with publisher id) and also declare ad spaces for each required ad type.
-
Select 'Networks' tab, select 'New Network' and then choose MobFox SDK under 'SDK Client-Side Mediation' (and NOT under 'Adnetwork Mediation' !!).
-
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.
- In 'Targeting' choose under the app that has been already defined, the ad space. select '+ Add' and save it.