Integrate with AppLovin
If you use AppLovin, you can automatically track Ad Revenue from Impressions with the justtrack SDK.
Before you begin
Please review the following compatibility matrix to make sure you're using compatible versions:
justtrack SDK | AppLovin Adapter | AppLovin SDK |
---|---|---|
6.0.0+ | 2.x | 13.x |
6.0.0+ | 1.x | 12.x |
Integrate with AppLovin
First, add the adapter dependency to your package manager:
- Kotlin
- Groovy
dependencies {
implementation("io.justtrack:adapter-applovin:1.0.0")
}
dependencies {
implementation "io.justtrack:adapter-applovin:1.0.0"
}
Then, initialize the adapter, and integrate it with the justtrack SDK:
- AppLovin MAX
- AppLovin
import io.justtrack.integrations.applovin.AppLovinMaxIntegrationAdapter
// Integrate the adapter while you build the SDK
val sdk = JustTrackSdkBuilder(this, API_TOKEN)
.addIntegrationAdapters(AppLovinMaxIntegrationAdapter("your applovin user id or null"))
.build()
// Or after...
sdk.integrateWith(AppLovinMaxIntegrationAdapter("your applovin user id or null"))
import io.justtrack.integrations.applovin.AppLovinSimpleIntegrationAdapter
// Integrate the adapter while you build the SDK
val sdk = JustTrackSdkBuilder(this, API_TOKEN)
.addIntegrationAdapters(AppLovinSimpleIntegrationAdapter())
.build()
// Or after...
sdk.integrateWith(AppLovinSimpleIntegrationAdapter())