Integration with Admob mediation

The banners and interstitial of the AppLift SDK can easily be integrated with the Admob mediation platform. More information about Admob mediation and how to set it up can be found at https://support.google.com/admob/v2/answer/3124703.

Setting up your app for mediation

We assume you already have a mediated ad slot defined in your app. To make use of AppLift banners in your mediated ad slot, you have to take the following steps:

  • Follow the general installation instructions on the Getting started page, which tells you to include the AppBrain SDK jar file in your app and make the necessary AndroidManifest changes. Also make sure that if you use Proguard, that your Proguard config has the necessary entries as outlined on that page.
  • Add the applift-admob-mediation.jar file to your project’s libs/ folder. This file can be downloaded from the AppLift GitHub page.
  • Set up your mediation placement for showing AppLift banners on https://apps.admob.com/#monetize.

First, go to Monetization and to the settings of your apps under “All apps”.

_images/admob-mediate1.png

Then, click “Edit mediation” next to your ad unit.

_images/admob-mediate2.png

In your ad networks list, click the button “+ New ad network”. In the next screen, fill out the following information:

  • Class Name: com.appbrain.mediation.AdmobAdapter
  • Label: AppLift banner (this is the name that Admob will show for the AppLift banners)
  • Parameter: Leave empty

Click “Continue”.

_images/admob-mediate3.png

The mediation is now set up. You should see the following line in your mediated ad network list:

_images/admob-mediate4.png

Make sure to adjust the CPM to what it is on the AppBrain dashboard regularly.

Mediating the AppLift interstitial

Mediation of the Admob interstitial works in the same way of the banners. The same class com.appbrain.mediation.AdmobAdapter can be put in the field “Class name” and parameter can be left empty.