SDK
HomePromoteAnalyzeDevelopResources
4.5.0
4.5.0
  • SDK Overview
    • Tracking Documentation
      • Android
      • iOS & SKAdNetwork
      • Retargeting
    • Predefined Events
    • Find your justtrack token
  • Android
    • Overview
      • Retargeting users
      • Revenue
      • UserEvent API
      • Demo
      • Changelog
    • Set up the SDK
    • Send user events
    • Get the justtrack user ID
    • Get an attribution
    • Get an advertiser and test group ID
    • Integrate third-party SDKs
  • iOS
    • Overview
      • Track sessions
      • UserEvent API
      • Changelog
    • Set up the SDK
    • Send user events
    • Get the justtrack user ID
    • Get an attribution
    • Get an advertiser and test group ID
    • Integrate third-party SDKs
    • Request tracking authorization
  • Unity
    • Overview
      • Forward Ad Impressions
      • UserEvent API
      • Changelog
    • Install the SDK
    • Install the dependencies
    • Add the prefab
    • Send user events
    • Get a justtrack user ID
    • Get an attribution
    • Get an advertiser and test group Id
    • Provide your own user Id
    • Integrate third-party SDKs
    • Forward in-app purchases
    • Get an affiliate link
    • Configure your iOS application
Powered by GitBook
On this page
  1. iOS

Get an advertiser and test group ID

The justtrack SDK can provide you with the IDFA of the user if the user didn't limit ad tracking. Additionally, users are divided into three test groups (1, 2, and 3) based on their IDFV. You can retrieve that test group id from the SDK, implement a different logic for one of the test groups, and then compare the (different) performance of that group with the other test groups on the justtrack dashboard.

let info = sdk.advertiserIdInfo
let advertiserId: String? = info.advertiserId
let isLimitedAdTracking = info.limitedAdTracking
log("My advertiser id is \(advertiserId)")
log("Ad tracking is limited = \(isLimitedAdTracking)")
let testGroupId: Int? = sdk.testGroupId
log("My test group id is \(testGroupId)")

Last updated 1 year ago