You’ll need a publisher account to obtain your
publisherToken and placement codes.1. Add the SDK
- Swift Package Manager
- CocoaPods
Add the SDK as a package dependency:Then add the
KontextSwiftSDK product to your target.2. Set up IDFA (App Tracking Transparency)
AddNSUserTrackingUsageDescription 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 — toInfo.plist. The SDK reads them at startup and forwards them on every /init.