Integrating AppLovin with Mediation

This guide is intended for publishers who want to use the Google Mobile Ads SDK to load and display ads from AppLovin Ads via mediation. It covers how to add AppLovin to an ad unit's mediation configuration , how to set up Ad Network Optimization (ANO), and how to integrate the AppLovin SDK and adapter into an Android app.

Supported ad formats and features

The AdMob mediation adapter for AppLovin has the following capabilities:

Rewarded Video
Native Advanced
Smart Banners
Ad Network Optimization (ANO)


  • Android SDK 4.0 (API level 14) or later
  • Google Play services 9.0.0 or later

Step 1: Set up AppLovin

Sign up or log in to your AppLovin account.

To set up your AdMob ad unit, you'll need your AppLovin SDK Key and Report Key. To find them, go to the AppLovin Dashboard and click on the Account tab. In the dropdown list under Account, select Keys to see both values.

Select app for mediation

On the AppLovin dashboard, select Manage Apps under the Monetize section to get to your registered apps.

Select the app you'd like to use with mediation from the list of available apps. If you do not see your app in the list, it is not registered. See the note below to get it registered.

Add placement

Once your app is selected, the basic settings of your app will be shown.


Navigate to the Turning On/Off Ads section. For default banner size (320x50) toggle the Banner Ads switch to ON. To enable Medium Rectangle size (300x250) banners, toggle the MREC Ads switch to ON.

Next, navigate to the Placements section. Enter a Name for your new placement and click Add Placement. Then, click Save.


Under the Placements section, enter a name for your new placement and click Add Placement. Then, click Save.

Rewarded video

Navigate to the Rewarded Video section. Toggle the Feature status switch to ON. Enter a value for Currency Name and Reward Amount per video watched in the Virtual Currency Details section, then select NO for Display pre-video modal and Display post-video modal.

Set the Callback options to Client side callback only.

Enter a name for your new placement and click Add Placement. Then, click Save.

Step 2: Configure mediation settings for your AdMob ad unit

You need to add AppLovin to the mediation configuration for your ad unit.

First, sign into your AdMob account.

Next, follow the instructions for either AdMob or AdMob Beta depending on which version of the AdMob UI you're using:


Navigate to the Monetize tab and select your application from the list on the left-hand side. Click the link in the mediation column for the ad unit to which you want to add AppLovin.

Click NEW AD NETWORK. A list of supported ad networks will be shown.

Select AppLovin from the list of networks and enter the Bundle ID of your app along with the Placement and the SDK Key obtained in the previous section. For the API Key, enter the Report Key obtained in the previous section to set up ANO for AppLovin.

Click Continue at the bottom of the page, then enter an eCPM value for AppLovin and click Save.

AdMob Beta

Navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add AppLovin as an ad source.

To create a new mediation group, select Create Mediation Group.

Enter your ad format and platform, then click Continue.

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then click Done.

You should now see the ad units card populated with the ad units you selected:

Add AppLovin as an ad source

In the Ad Sources card, select Add Ad Network.

Select AppLovin and enable the Optimize switch. For the API Key, enter the Report Key obtained in the previous section to set up ANO for AppLovin. Then enter an eCPM value for AppLovin and click Continue.

Enter the Bundle ID of your app along with the Placement and the SDK Key obtained in the previous section.

Using rewarded video ads

In the settings for your rewarded video ad unit, check the Override reward settings from third-party ad networks when using AdMob mediation checkbox so that you provide the same reward to the user no matter which ad network is served.

If you don't override the reward, the AppLovin adapter passes back the reward specified in the AppLovin dashboard when creating the placement.

For more information on setting reward values for AdMob ad units, see Create an ad unit.

Step 3: Import the AppLovin SDK and adapter

Add the following compile dependency with the latest version of the AppLovin SDK and adapter in the app-level build.gradle file:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation ''
    implementation ''
    implementation 'com.applovin:applovin-sdk:7.7.0'
    implementation ''

Manual integration

  • Download the AppLovin Android SDK, extract the applovin-sdk-7.7.0.jar, and add it to your project.

  • Download the latest AppLovin adapter .aar file from Bintray and add it to your project.

Step 4: Additional code required

Modify Android manifest


Include the following Activities in your AndroidManifest.xml under the application tag:

<activity android:name="com.applovin.adview.AppLovinInterstitialActivity"

<activity android:name="com.applovin.adview.AppLovinConfirmationActivity"

Step 5: Test your implementation

AppLovin recommends that test ads should be used during development if you cannot get live ads.

To enable test ads for a placement, go to the Manage Apps page by clicking on your app's name in the AppLovin dashboard and navigate to the Test Mode section. Toggle the Test Mode switch to ON.

Test Mode may take up to 30 mins to take effect. It will also automatically reset to OFF after two hours.

Optional steps

Network-specific parameters

The AppLovin adapter supports setMuteAudio() which can disable audio on video ads. This method can be called from an AppLovinExtrasBundleBuilder object:


Bundle extras = new AppLovinExtrasBundleBuilder()
AdRequest request =  new AdRequest.Builder()
       .addNetworkExtrasBundle(ApplovinAdapter.class, extras)


val extras = AppLovinExtrasBundleBuilder()
val request = AdRequest.Builder()
       .addNetworkExtrasBundle(, extras)


Adding AppLovinSdk.initializeSdk(context); to your launch activity provides AppLovin the ability to track events as soon as the app starts.

Send feedback about...

AdMob for Android
AdMob for Android
Need help? Visit our support page.