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 Adapter | ironSource SDK |
---|---|---|
6.0.0+ | 1.x | 8.x |
Integrate with ironSource
First, add the adapter dependency to your package manager:
- Cocoa Pods
- Swift Package Manager
- Carthage
pod 'JustTrackSDKIronSourceAdapter', '~> 1.0.0'
https://github.com/justtrackio/justtrack-sdk-spm.git
binary "https://sdk.justtrack.io/carthage/JustTrackSDKIronSourceAdapter.json"
Then, initialize the adapter, and integrate it with the justtrack SDK:
import JustTrackSDK
import JustTrackSDKIronSourceAdapter
// Build the SDK
let sdk = try JustTrackSdkBuilder(apiToken: apiToken)
.set(trackingId: trackingId, trackingProvider: trackingProvider)
.build()
// Integrate the ironSource adapter, providing a user ID or nil
sdk.integrate(with: JusttrackIronSourceAdapter(customUserId: "your user ID or nil"))
// Or, integrate the ironSource adapter without a user ID
sdk.integrate(with: JusttrackIronSourceAdapter())