Android SDK
Android SDK
Kotlin package tech.meridianads:sdk from GitLab Maven. This stub will mirror sdks/android/README.md.
Install
Maven Central is out of v1. Add the GitLab Maven registry for this project, then depend on tech.meridianads:sdk.
Gradle
// GitLab Maven for yelle/saas/meridian-ads
implementation("tech.meridianads:sdk:<version>")Serve, render, click
Names below are illustrative until the Android README lands. Fire impression on render. Route taps through clickUrl. Missing context traits fail closed on the server, not in the SDK.
Kotlin
val client = Client(
appKey = BuildConfig.MERIDIAN_ADS_APP_KEY,
secret = BuildConfig.MERIDIAN_ADS_SECRET,
)
val decision = client.serve(
placement = "home",
userKey = "user-42",
context = mapOf("country" to "US", "plan" to "pro"),
)
if (decision != null) {
client.impression(decision)
}Next
Serve HMAC if you need the raw HTTP contract, and OpenAPI for decision response fields.