Skip to content

Integrate AppLovin with Mediation

This guide explains how to utilize the Google Mobile Ads SDK for loading and presenting ads from AppLovin through mediation. It provides instructions on integrating AppLovin into the mediation configuration of a Godot app and integrating the AppLovin SDK and adapter into your Godot app.

This document is based on:

Supported integrations and ad formats

The AdMob mediation adapter for AppLovin has the following capabilities:

Integration
Bidding
Waterfall
Formats
Banner
Interstitial
Rewarded
Rewarded Interstitial
Native

Prerequisites

Step 1: Set up AppLovin

We recommend following the tutorial for Android or iOS, as it will be the same for both.

Step 2: Configure mediation settings for your AdMob ad unit

We recommend following the tutorial for Android or iOS, as it will be the same for both.

Step 3: Import the AppLovin SDK plugin

  1. Download the plugin for Android.
  2. Extract the .zip file. Inside, you will find an applovin folder.
  3. Copy the contents of the applovin folder and paste them into the Android plugin folder at res://addons/admob/android/bin/.

The AppLovin adapter is already included in the standard iOS plugin download. If you followed the iOS Installation guide, you should already have the necessary files (poing-godot-admob-applovin.gdip and related frameworks) in your res://ios/plugins/ directory.

Step 4: Enable the plugin

Make sure to enable Applovin in Project Settings (under Admob > Android > Mediation > Applovin).

Make sure to check both Ad Mob and Ad Mob App Lovin under the Plugins list in your iOS Export Presets (as well as entering your AdMob App ID in the Plists config).

Step 5: Optional steps (Regulatory Settings)

Under the Google EU User Consent Policy, you must make certain disclosures to users in the European Economic Area (EEA) and obtain their consent for the use of cookies or other local storage, and for the use of personal data.

To pass GDPR consent info to the AppLovin SDK, use the following code:

AppLovin.set_has_user_consent(true)
AppLovin.SetHasUserConsent(true);

CCPA

To comply with the CCPA, you can set "do not sell" settings. The following sample code shows how to pass this information to the AppLovin SDK:

AppLovin.set_do_not_sell(false)
AppLovin.SetDoNotSell(false);

Audio Control

To mute/unmute audio for AppLovin ads, use the following code:

AppLovin.set_muted(true)
AppLovin.SetMuted(true);