Skip to main content
You’ll need a publisher account to obtain your publisherToken and placement codes.

1. Add the SDK

Add the SDK as a package dependency:
Then add the KontextSwiftSDK product to your target.

2. Set up IDFA (App Tracking Transparency)

Add NSUserTrackingUsageDescription to Info.plist. The SDK auto-prompts for ATT the first time a session is created and reads IDFA + IDFV from there. See IFA & ATT for the full setup — required Info.plist key, prompt-timing gotchas, and how to manage the prompt yourself.

3. Set up SKAdNetwork

Add Kontext’s own ad network identifier — plus the DSP identifiers we provide during onboarding — to Info.plist. The SDK reads them at startup and forwards them on every /init.
Without Kontext’s identifier, installs from directly-served campaigns silently won’t be attributed. See SKAdNetwork for the full guide.