Skip to main content
Version: SDK 4.5.x

Enable real-time revenue data with ironSource

If you use ironSource to monetize your app and display ads to your users, you can send user events and impression-level revenue data to your justtrack account for each ad impression.

To do so, you'll:

  1. Integrate the justtrack SDK with the ironSource SDK
  2. Enable real-time revenue postbacks in your account settings

Integrate the ironSource SDK

To take advantage of real-time revenue data, you must enable integration with the ironSource SDK. You can configure ironSource to use the justtrack user ID, which allows our platform to match ad impressions with revenue events based on the user's ID. After creating an instance of the justtrack SDK, call sdk.integrateWithIronSource():

// kick off the integration, it will eventually complete as long as getting a user ID succeeds
// you need to wait for the integration to be finished before you initialize the ironSource SDK:
await JustTrackSdk.integrateWithIronSource(JustTrackSdk.UserIdSource.JustTrack);

// if you want to provide your own user id, you don't need to wait for any futures:
await JustTrackSdk.integrateWithIronSource('your_id');
warning

You need to call this method before you initialize the ironSource SDK.

If you supply your own user ID to ironSource (either by letting the justtrack SDK forward it or by specifying JustTrackSdk.UserIdSource.NoUserId), you need to provide it as a custom user ID to the justtrack SDK. Otherwise, we won't be able to match ad impressions with revenue events based on the user's ID.

Enable real-time revenue postbacks

To allow the SDK to report real-time revenue events:

  1. Navigate to your account in the ironSource dashboard
  2. Under API, click Enable ad revenue measurements (ARM) SDK postbacks.