Documentation Index
Fetch the complete documentation index at: https://docs.kontext.so/llms.txt
Use this file to discover all available pages before exploring further.
You’ll need a publisher account to obtain your
publisherToken and placement codes.1. Add the SDK
The SDK is published to Maven Central asso.kontext:ads. Make sure mavenCentral() is listed in your project’s repository configuration:
build.gradle.kts:
2. Google Advertising ID (GAID)
The SDK automatically reads and forwards the Google Advertising ID with each ad request. Thecom.google.android.gms.permission.AD_ID permission is automatically merged into your AndroidManifest.xml via the SDK’s manifest contribution — no changes to your manifest are required. GAID is an install-time permission, so there is no runtime prompt.
If your app targets Android 13+ (API 33+) and you have explicitly set
tools:node="remove" on the AD_ID permission anywhere in your manifest, remove that override or the advertising identifier will not be accessible at runtime.SessionOptions.advertisingId — that value takes priority over the SDK’s automatic collection.