RTBSDK Android Integration
Release Notes
  • Start
    • Setup
      • Maven
      • Configure RTBSDK
    • Consent
  • Formats
    • Banner
    • Fullscreen (Interstitial)
    • Native Ads
    • Advanced
      • Separate Loading and Rendering of Banner Ads
  • Other
    • AppLovin Custom Adapter
    • AdMob Custom Events
    • Reference
      • Classes
        • RTBSDKManager
        • RTBBannerView
        • RTBBannerAdProvider
        • RTBBannerRequestConfiguration
        • RTBBannerSize
        • RTBFullscreenAd
        • RTBFullscreenRequestConfiguration
        • RTBBidInfo
        • RTBNativeAd
        • RTBNativeAdRequestConfiguration
        • RTBUserTargeting
        • RTBNativeAdLoader
      • Interfaces
        • RTBBannerViewDelegate
        • RTBBannerAdLoadDelegate
        • RTBBannerAdInteractionDelegate
        • RTBFullscreenDelegate
        • RTBNativeAdLoadDelegate
        • RTBNativeAdInteractionDelegate
      • Enumerations
        • RTBGender
  • Sample App
Powered by GitBook
On this page
  • Add Custom SDK Network
  • Setup Ad Unit
  • Implementation Steps
  • How GraviteRTBAppLovinMediationAdapter Works
  1. Other

AppLovin Custom Adapter

PreviousOtherNextAdMob Custom Events

Last updated 1 month ago

RTBSDKMediationAdapter is a library that implements . It supports the following ad formats:

  • Banners

  • Fullscreen

  • Native ads

Add Custom SDK Network

  • In the MAX Dashboard, select . Then click "Click here" to add a Custom Network at the bottom of the page. The Create Custom Network page appears. Add the information about RTBSDK custom network:

    • Network Type: choose SDK.

    • Name: RTBSDK.

    • Android / Fire OS Adapter Class Name: com.applovin.mediation.adapters.RTBSDKMediationAdapter.

Setup Ad Unit

Please contact your Gravite account manager to agree on the following parameters, as some need to be created on our end.

  • Set the "App ID" to the apps bundle ID.

  • Set the "placement ID" to the Gravite Marketplace placement ID as forwarded to you by your Gravite account manager.

  • Optional: set the seller id and the bid floor values in the "Custom Parameters" field to {"sellerId": "<SELLER_ID_VALUE>", "bidFloor": "<BID_FLOOR_VALUE>" }where SELLER_ID_VALUE is the seller id value and BID_FLOOR_VALUE is the bid floor value.

Implementation Steps

  • Add the RTB SDK repository to your repositories list

allprojects {
    repositories {
        google()
        mavenCentral()
        //... other repositories you use
        maven {
            url 'https://android-sdk-rtb.gravite.net/maven'
        }
    }
}
  • Add the AppLovin adapter dependency:

dependencies {
    //... other project dependencies
    implementation ('com.rtb.sdk:RTB-SDK-AppLovinMediationAdapter:<SDK_VERSION>') {
        transitive = true
    }
}

This will install both the mediation adapter and RTB SDK. Please note that the version of the adapter corresponds to the used version of RTB SDK.

How GraviteRTBAppLovinMediationAdapter Works

  • AppLovin internally calls RTBSDKMediationAdapter asking for an ad.

  • RTBSDKMediationAdapter internally calls RTBSDK asking for an ad.

  • When RTBSDK responds, RTBSDKMediationAdapter would notify AppLovin with the response using the AppLovin custom adapter delegate methods. And in return, AppLovin will notify you of the response using the normal AppLovin callback.

Integrate with AppLovin fullscreen and banner formats following the .

The publisher requests an ad (Banner or Fullscreen) normally from AppLovin SDK (To learn how to request an ad from AppLovin, please visit ).

AppLovin documentation
AppLovin documentation
AppLovin custom adapter
MAX > Mediation > Manage > Networks