AppLovin Integration

Follow these steps to integrate AppLovin mediation with your RTB-Stack SDK project.

Step 1: Add Repositories

First, ensure that you have added the necessary repositories to your project-level build.gradle file:

repositories {
    google()
    mavenCentral()
}
Step 2: Add Dependencies

In your app-level build.gradle add the AppLovin SDK and the RTB-Stack mediation SDK dependency:

dependencies {
   implementation 'com.applovin:applovin-sdk'
   implementation 'com.rtb-stack.sdk.mediation.applovin'
}
Step 3: Initialize the AppLovin SDK

Before loading ads through mediation, make sure to initialize the AppLovin SDK in your app. This ensures the SDK is ready for ad requests:

AppLovinSdk.getInstance(this).setMediationProvider("max");
AppLovinSdk.initializeSdk(this, new AppLovinSdk.SdkInitializationListener() {
   @Override
   public void onSdkInitialized(AppLovinSdkConfiguration config) {
   }
});
Step 4: Configure Mediation in RTB-Stack

After integrating the SDK, configure AppLovin as a mediation partner in the RTB-Stack platform.

Updated on December 12, 2024