# Kontext Documentation ## Docs - [Advertisers](https://docs.kontext.so/advertisers.md): Reach your ideal audience with contextually relevant, AI-powered native ads. - [Ad engine](https://docs.kontext.so/concepts/ad-engine.md): How Kontext's ad engine serves ads from direct partners and programmatic DSPs. - [Ad formats](https://docs.kontext.so/concepts/ad-formats.md): Image, video, interstitial, and banner — what each format is and how the ad server picks which one to deliver. - [Displaying ads](https://docs.kontext.so/concepts/displaying-ads.md): Where the ad slot goes, which message id to bind it to, and the common 'latest assistant message' pattern. - [Ad lifecycle events](https://docs.kontext.so/concepts/events.md): Every event the SDK can emit — filled, no-fill, viewed, clicked, render-*, video.*, reward.granted — what triggers them and what to do with them. - [How it works](https://docs.kontext.so/concepts/how-it-works.md): The session-to-render flow that powers every Kontext integration. - [IDs and tokens](https://docs.kontext.so/concepts/ids-and-tokens.md): publisherToken, placement code, userId, conversationId, IFA, IDFV — what each is, who generates it, and what it is used for. - [Messages](https://docs.kontext.so/concepts/messages.md): What the SDK needs from each chat message and why stable, unique IDs matter. - [Pacing](https://docs.kontext.so/concepts/pacing.md): How often ads appear in a conversation — paced by us, or overridden per message with trackOnly. - [Session lifecycle](https://docs.kontext.so/concepts/session.md): How a Kontext session is created, fed messages, listened to, and closed. - [ads.txt & app-ads.txt](https://docs.kontext.so/guides/ads-txt.md): Host the IAB authorized-sellers file at your domain so demand partners trust your traffic. - [Best practices](https://docs.kontext.so/guides/best-practices.md): Pre-launch checklist for publishers integrating the Kontext SDK. - [Debugging](https://docs.kontext.so/guides/debugging.md): Use onEvent for ad-lifecycle signals and onDebugEvent for a detailed internal log. - [IFA & ATT](https://docs.kontext.so/guides/ifa.md): How the SDK reads the device advertising identifier on iOS and Android, and the one-time configuration each platform needs. - [SKAdNetwork](https://docs.kontext.so/guides/skadnetwork.md): Configure SKAdNetwork identifiers on iOS so DSPs can attribute installs from your ads. - [TCF & CMP](https://docs.kontext.so/guides/tcf-cmp.md): How the SDK reads IAB TCF v2.2 consent from your CMP automatically, plus the regulatory object for manual control. - [Testing](https://docs.kontext.so/guides/testing.md): Use the development publisher token to integrate and test without usage limits. - [Overview](https://docs.kontext.so/overview.md): Transform your app into a revenue engine with native, AI-powered ads. - [Publishers](https://docs.kontext.so/publishers.md): Transform your app into a revenue engine with native, AI-powered ads. - [Changelog](https://docs.kontext.so/resources/changelog.md): Version history for each Kontext SDK. - [Compliance](https://docs.kontext.so/resources/compliance.md): OMID certification, IAB Tech Lab posture, privacy regulations, and platform policies. - [Demos](https://docs.kontext.so/resources/demos.md): Runnable example apps for every Kontext SDK. - [Support](https://docs.kontext.so/resources/support.md): Get in touch with the Kontext team. - [Flutter SDK](https://docs.kontext.so/sdk/flutter.md): Get started with our SDK built for iOS and Android apps using Flutter - [JavaScript SDK](https://docs.kontext.so/sdk/js.md): A lightweight JavaScript SDK that lets you integrate Kontext ads into any web app. - [API reference](https://docs.kontext.so/sdk/js/api.md): createSession, Session, Ad, and the full event list. - [Example app](https://docs.kontext.so/sdk/js/example.md): Run the Vite demo against your own publisher token. - [Showing your first ad](https://docs.kontext.so/sdk/js/first-ad.md): Create a session, feed messages, mount an ad, observe events. - [Guides](https://docs.kontext.so/sdk/js/guides.md): Patterns and recipes for common JavaScript SDK integration tasks. - [Installation](https://docs.kontext.so/sdk/js/installation.md): Install @kontextso/sdk-js via npm or load it from CDN. - [Kotlin SDK](https://docs.kontext.so/sdk/kotlin.md): Integrate Kontext ads into your Android app with the Kotlin SDK. - [API reference](https://docs.kontext.so/sdk/kotlin/api.md): Every type and method exposed by the Kotlin SDK. - [Example app](https://docs.kontext.so/sdk/kotlin/example.md): Run the bundled Compose demo against your own publisher token. - [Showing your first ad](https://docs.kontext.so/sdk/kotlin/first-ad.md): Create a session, feed messages, mount InlineAd, and observe events. - [Guides](https://docs.kontext.so/sdk/kotlin/guides.md): Patterns and recipes for common Kotlin SDK integration tasks. - [Installation](https://docs.kontext.so/sdk/kotlin/installation.md): Add the Kotlin SDK to your Android project and configure GAID. - [React SDK](https://docs.kontext.so/sdk/react.md): Integrate Kontext ads into your React app with the React SDK. - [React Native SDK](https://docs.kontext.so/sdk/react-native.md): Get started with our SDK built for iOS and Android apps using React Native - [API reference](https://docs.kontext.so/sdk/react/api.md): Props, hooks, components, and events exposed by the React SDK. - [Example app](https://docs.kontext.so/sdk/react/example.md): Run the Next.js demo against your own publisher token. - [Showing your first ad](https://docs.kontext.so/sdk/react/first-ad.md): Wrap your app in , feed messages, mount , observe events. - [Guides](https://docs.kontext.so/sdk/react/guides.md): Patterns and recipes for common React SDK integration tasks. - [Installation](https://docs.kontext.so/sdk/react/installation.md): Install @kontextso/sdk-react. - [Swift SDK](https://docs.kontext.so/sdk/swift.md): Integrate Kontext ads into your iOS app with the Swift SDK. - [API reference](https://docs.kontext.so/sdk/swift/api.md): Every type and method exposed by the Swift SDK. - [Example app](https://docs.kontext.so/sdk/swift/example.md): Run the bundled UIKit demo against your own publisher token. - [Showing your first ad](https://docs.kontext.so/sdk/swift/first-ad.md): Create a session, feed messages, mount InlineAdUIView, and observe events. - [Guides](https://docs.kontext.so/sdk/swift/guides.md): Patterns and recipes for common Swift SDK integration tasks. - [Installation](https://docs.kontext.so/sdk/swift/installation.md): Add the Swift SDK to your iOS project and configure ATT + SKAdNetwork. - [Vue SDK](https://docs.kontext.so/sdk/vue.md): Integrate Kontext ads into your Vue 3 app with the Vue SDK. - [API reference](https://docs.kontext.so/sdk/vue/api.md): Plugin options, composable, components, and events exposed by the Vue SDK. - [Example app](https://docs.kontext.so/sdk/vue/example.md): Run the Vite + Vue 3 demo against your own publisher token. - [Showing your first ad](https://docs.kontext.so/sdk/vue/first-ad.md): Install the Kontext plugin, feed messages, mount , observe events. - [Guides](https://docs.kontext.so/sdk/vue/guides.md): Patterns and recipes for common Vue SDK integration tasks. - [Installation](https://docs.kontext.so/sdk/vue/installation.md): Install @kontextso/sdk-vue.