AdMob Mediation Adapter

Adcash AdMob Mediation Adapter is designed for integrating Adcash with AdMob Mediation on Android to maximize fill rate and revenue.

It’s a simple 2-step integration process.

Integration Guide

Assuming integration is already done with AdMob SDK, if not please follow AdMob Integration guideline

1. Integrate Adcash SDK


1. Add Dependencies

JCenter repository


Add JCenter repository if you havn’t added it yet. Adcash SDK also requires AdMob SDK and Android Support Library v4
In your project base `build.gradle` file add:

repositories {

dependencies {
    // Integrate Adcash SDK:
    compile 'com.adcash:adcash-admob-adapter:2.2.2'

    // Required by Adcash SDK:
    compile ''
    compile ''

If you have jcenter repository in your project level build.gradle for all modules, then you don’t need to add it again in module level build.gradle

Local library file

If you prefer to use local file instead of Jcenter repository, you can also do it.

Download the Adcash SDK here.
Add Adcash SDK into project by putting it in ‘libs’ module. If you don’t have ‘libs’ folder in your project module then create one (Example: … MyApplication/app/libs/)

androidsdk-admob-adapter-gradle-script-localFirst, download the AdMob adapter. Then create a `libs` folder (if you do not already have one) in your project (Example: … MyApplication/app/libs/) then add the previously downloaded .AAR file
Open the build.gradle of your app and add the following code lines:
repositories {
    flatDir {
       dirs 'libs'

dependencies {
    // Integrate Adcash SDK:
    compile(name: 'adcash-admob-adapter', ext: 'aar')

    // Required by Adcash SDK:
    compile ''
    compile ''

Click Sync Now or request Gradle sync yourself if you have not been promoted automatically. Wait till Gradle finishes.

(Optional) Proguard settings

If you want to enable Proguard in your project, add following line to your `proguard.cfg` file:

> -keep class com.adcash.mobileads.** { *; }

2. Update Manifest


At this point you have added all necessary dependencies to your project and need small modifications to your module `AndroidManifest.xml` file to finish with the integration.

  1. Add the following <uses-permission> tags:
    • INTERNET – required to allow the Adcash SDK to make ad requests.
    • ACCESS_NETWORK_STATE – used to check the Network connection availability.
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  1. Add AdcashActivity for full screen ads to work (interstitial and rewarded video)
        android:theme="@android:style/Theme.Translucent" />

2 Configure Adcash Custom Event on AdMob Mediation Portal

2.1 Select App & Add New Network

On AdMob Mediation Portal, click on Monetize tab then select one of your app from left panel that you want to monetize.


On Application page, select one of your ad unit (Adcash AdMob Android Adaptor currently supports Banner and Interstitial ad format) and click on Mediation for adding new ad network.


On Mediation page, click on new ad network and it open new window for configuring it.

2.2 Add Adcash Custom Ad Network


Click on Custom Event and it will open window for filling out information.

Custom Event Information from:

Class Name
For Banner: com.adcash.mobileads.admobadapter.AdcashAdmobBanner
For Interstitial: com.adcash.mobileads.admobadapter.AdcashAdmobInterstitial
For Rewarded Video: com.adcash.mobileads.admobadapter.AdcashAdmobRewardedVideo
Label: Adcash
Parameter: Enter Zone ID from Adcash Publisher Panel

Release App

Now Adcash is successfully has integrated with AdMob Mediation platform and you can release out the app in PlayStore. Please note changes made in AdMob Mediation Portal take couple of hours to reflect.


If you need any help or assistance you can contact us by sending email to