Integrate with ironSource
If you use ironSource, you can automatically track Advertisement revenue from Impressions with justtrack SDK.
Before you begin
Please review the following compatibility matrix to make sure you're using compatible versions:
justtrack SDK | ironSource SDK |
---|---|
6.0.0+ | 8.x |
Integrate with ironSource
- In the Unity Editor, navigate to the justtrack SDK configuration prefab.
- In the Android and/or iOS sections, enable Add IronSource Adapter. This adds the IronSource adapter to your project for the respective platforms.
- Call the integration method in your code:
using JustTrack;
// Call this after SDK initialization
JustTrackSDK.IntegrateWithIronSource(
customUserId: "your user id or null", // optional
pOnSuccess: () => {
Debug.Log("IronSource integration successful");
},
pOnFailure: (error) => {
Debug.LogError($"IronSource integration failed: {error}");
}
);
// Or without custom user ID
JustTrackSDK.IntegrateWithIronSource(
customUserId: null,
pOnSuccess: () => {
Debug.Log("IronSource integration successful");
},
pOnFailure: (error) => {
Debug.LogError($"IronSource integration failed: {error}");
}
);
info
You must wait for the success callback before initializing the IronSource SDK, itself.