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