Skip to main content

4.4 MAX Adapter

4.4.1 Version Release History​

VersionRelease DateUpdatesMin Sdk Version
3.6.6.1.12026-09-02Depends on Hisavana SSP SDK version 3.6.6.1; MAX version 13.6.4. Supports Native, Banner, Interstitial, and Rewarded ad types24

4.4.2 MAX Console Configuration Process​

  1. In the MAX console, go to Mediation → Manage → Networks and add a Custom Network. Set Class Name to com.hisavana.applovin.adapter.HisavanaMediationAdapter, as shown below:
  1. Under the corresponding ad unit, configure the custom parameters: App ID — enter the App ID obtained from the Hisavana SSP console; Placement ID — enter the Code Seat ID obtained from the Hisavana SSP console (note: it must match the current ad format).

4.4.3 Importing the Adapter​

First, add the maven remote repository URL to the project-level build.gradle file, as shown below:

buildscript {
repositories {
maven { url "https://mvn.shalltry.com/repository/maven-public/" }
maven { url "https://mvn.shalltry.com/repository/ad-releases/" }
}
}
allprojects {
repositories {
maven { url "https://mvn.shalltry.com/repository/maven-public/" }
maven { url "https://mvn.shalltry.com/repository/ad-releases/" }
}
}

Then, introduce the max adapter package in the Module's build.gradle:

implementation "com.cloud.hisavana.sdk.ssp.adapter:max:3.6.6.1.1"

4.4.4 Integration Testing Instructions​

Before initializing the ad SDK, set Hisavana to test mode to ensure test ads are requested during the testing phase:

Kotlin:

HisavanaMediationAdapter.isTestRequest = true

Java:

HisavanaMediationAdapter.Companion.setTestRequest(true);
danger

Production release warning: Make sure to disable test mode by setting it to false.

Adapter log filter tag: hs_max_adapter

Run the following command to enable DEBUG logging:

adb shell setprop log.tag.hs_max_adapter DEBUG