Integrate with AppLovin
This page covers every SDK platform and version. A part that applies only to some platforms starts with Platform: …, and a part that applies only to some SDK versions starts with SDK version: ….
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())
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+ | 1.x | 12.x - 13.x |
Integrate with AppLovin
First, add the adapter dependency to your package manager:
- Cocoa Pods
- Swift Package Manager
- Carthage
pod 'JustTrackSDKAppLovinAdapter', '~> 1.0.0'
https://github.com/justtrackio/justtrack-sdk-spm.git
binary "https://sdk.justtrack.io/carthage/JustTrackSDKAppLovinAdapter.json"
Then, initialize the adapter, and integrate it with the justtrack SDK:
import JustTrackSDK
import JustTrackSDKAppLovinAdapter
// Build the SDK
let sdk = try JustTrackSdkBuilder(apiToken: apiToken)
.set(trackingId: trackingId, trackingProvider: trackingProvider)
.build()
// Integrate the AppLovin adapter, providing an AppLovin user ID or nil
sdk.integrate(with: JusttrackAppLovinAdapter(customUserId: "your AppLovin User ID or nil"))
// Or, integrate the AppLovin adapter without an AppLovin user ID
sdk.integrate(with: JusttrackAppLovinAdapter())
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 | 8.x, 9.x |
| 6.0.0+ | 1.x | 7.x |
Integrate with AppLovin
First, add the adapter dependency to your package manager:
npm install justtrack-adapter-applovin --save
Then, initialize the adapter, and integrate it with the justtrack SDK:
import { registerAdapter as registerApplovinAdapter } from 'justtrack-adapter-applovin';
AppLovinMAX.initialize('your applovin token')
.then((_: Configuration) => {
registerApplovinAdapter('applovin user id or null');
})
.catch((error) => {
// Handle exceptions
});
If you use AppLovin, you can automatically track Ad Revenue from Impressions with the justtrack SDK.
Before you begin
Review the following compatibility matrix to choose the AppLovin adapter version that matches your AppLovin SDK. Automatic uses the default version.
| Platform | AppLovin Adapter | AppLovin SDK |
|---|---|---|
| Android | 2.x (default) | 13.x |
| Android | 1.x | 12.x |
| iOS | 1.x (default) | 12.x - 13.x |
Integrate with AppLovin
- In the Unity Editor, navigate to the justtrack SDK configuration prefab.
- Select the Android or iOS tab, and enable Add AppLovin Adapter. This adds the AppLovin adapter to your project for that platform.
- Optional: In Adapter Version, choose the adapter version that matches your AppLovin SDK. See Choose an adapter version.
- Call the integration method in your code:
using JustTrack;
// Call this after SDK initialization
JustTrackSDK.IntegrateWithAppLovin(
customUserId: "your applovin user id or null", // optional
pOnSuccess: () => {
Debug.Log("AppLovin integration successful");
},
pOnFailure: (error) => {
Debug.LogError($"AppLovin integration failed: {error}");
}
);
// Or without custom user ID
JustTrackSDK.IntegrateWithAppLovin(
customUserId: null,
pOnSuccess: () => {
Debug.Log("AppLovin integration successful");
},
pOnFailure: (error) => {
Debug.LogError($"AppLovin integration failed: {error}");
}
);
Choose an adapter version
You can choose which adapter version the justtrack SDK adds to your project. After you enable an adapter, an Adapter Version menu appears below it with these options:
- Automatic: Uses the default adapter version for your installed justtrack SDK. Use this option unless your third-party SDK version needs a different adapter.
- A specific version, such as 1.0.0 or 2.0.0: Uses the latest stable release of that major version. Choose the version that matches your third-party SDK in the compatibility matrix.
- Custom: Lets you enter any version. Enter an adapter version that's already published. If the version doesn't exist, the justtrack SDK uses the default version instead.
An AppLovin integration isn't available for the justtrack Flutter SDK yet. To track ad revenue from AppLovin, forward each impression with .forwardAdImpression(). See Track ad impressions.
An AppLovin integration isn't available for the justtrack Godot SDK yet. To track ad revenue from AppLovin, forward each impression manually. See Track ad impressions.
Platform: UnrealAn AppLovin integration isn't available for the justtrack Unreal SDK yet. To track ad revenue from AppLovin, forward each impression manually. See Track ad impressions.
Platform: GodotAn AppLovin integration isn't available for the justtrack Godot SDK yet. To track ad revenue from AppLovin, forward each impression manually. See Track ad impressions.
Platform: UnrealAn AppLovin integration isn't available for the justtrack Unreal SDK yet. To track ad revenue from AppLovin, forward each impression manually. See Track ad impressions.