Full demand eligibility. Runs in a native app context. All four demand tiers serve, and tracking is automatic.
The Android SDK is Compose-first: Kotlin, coroutines and Flow for async, Material 3 theming, distributed via Maven Central. A View interop wrapper is included for hybrid codebases that still run legacy Views.
Install
// build.gradle.kts
dependencies {
implementation("ai.adgentek:adgentek-android:1.0.0")
}
Initialize
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
Adgentek.configure(context = this, token = "YOUR_PUBLISHER_TOKEN")
}
}
Placement (Compose)
@Composable
fun MessageTurn(query: String, response: String) {
AIMessage(response)
AdgentekPlacement(query = query, response = response)
}
Material 3 dynamic theming is inherited by default, so the unit adapts to the user’s system palette. Override with an explicit AdgentekTheme when you need brand control; see Theming.
Placement (View interop)
For legacy View hierarchies:
val placement = AdgentekPlacementView(context).apply {
bind(query = userMessage, response = aiResponse)
}
container.addView(placement)
Verify
Enable the debug inspector and confirm successful init and serve requests, then an impression event on render.