跳转到主要内容

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.

Kotlin SDK

看看用我们轻量的 SDK 接入高性能广告有多简单。

环境要求

  • Android API 26+(Android 8.0)
  • Kotlin 1.9+
  • 推荐使用 Jetpack Compose 集成 InlineAd;非 Compose 项目可通过 InlineAdView 完成 View 互操作
你需要一个 发布方账号 来获取 publisherToken 与 placement code。

安装

通过 Gradle 添加 SDK,配置 GAID 自动收集。

展示第一个广告

创建会话、喂入消息、挂载广告——五分钟完成接入。

API 参考

SDK 暴露的全部类型与方法。

实践指南

no-fill、切换 character、View 互操作等常见模式。

示例应用

使用你自己的 publisher token 端到端运行 Compose 示例。