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 SDK |
---|---|
6.0.0+ | 12.x - 13.x |
Integrate with AppLovin
- In the Unity Editor, navigate to the justtrack SDK configuration prefab.
- In the Android and/or iOS sections, enable Add AppLovin Adapter. This adds the AppLovin adapter to your project for the respective platforms.
- 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}");
}
);