Integrate with Unity Ads
If you use Unity Ads, 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 | Unity Ads SDK |
---|---|
6.0.0+ | 4.x |
Integrate with Unity Ads
- In the Unity Editor, navigate to the justtrack SDK configuration prefab.
- In the Android and/or iOS sections, enable Add Unity Ads Adapter. This adds the Unity Ads adapter to your project for the respective platforms.
- Call the integration method in your code:
using JustTrack;
// Call this after SDK initialization
JustTrackSDK.IntegrateWithUnityAds(
pOnSuccess: () => {
Debug.Log("Unity Ads integration successful");
},
pOnFailure: (error) => {
Debug.LogError($"Unity Ads integration failed: {error}");
}
);