---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/ad-monetization/dev/compose-multiplatform/appnext.md
  - https://boost.yandex.com/doc/ru/ad-monetization/dev/compose-multiplatform/appnext.md
  - https://boost.yandex.com/doc/zh/ad-monetization/dev/compose-multiplatform/appnext.md
  - href: https://boost.yandex.com/doc/zh/ad-monetization/dev/compose-multiplatform/appnext.md
    type: text/markdown
    title: Markdown version
  - href: https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064

# 启用 AppNext

## 支持的广告格式 {#formats}

- [自适应内联横幅](https://boost.yandex.com/doc/zh/ad-monetization/dev/compose-multiplatform/adaptive-inline-banner.md)
- [自适应粘性横幅](https://boost.yandex.com/doc/zh/ad-monetization/dev/compose-multiplatform/adaptive-sticky-banner.md)
- [插屏广告](https://boost.yandex.com/doc/zh/ad-monetization/dev/compose-multiplatform/interstitial.md)
- [激励广告](https://boost.yandex.com/doc/zh/ad-monetization/dev/compose-multiplatform/rewarded.md)

## 集成 {#integration}

{% list tabs %}

- Android

   1. 在 Yandex Advertising Network 界面和其他网络界面中[设置聚合](https://boost.yandex.com/doc/zh/ad-monetization/monetization/yandex-mediation/setup.md)。

   2. 将依赖项添加到应用级别的 build.gradle.kts 文件中的 `androidMain.dependencies` 块：
      ```kotlin
      implementation("com.yandex.android:mobileads:8.5.0")
      implementation("com.yandex.ads.mediation:mobileads-appnext:2.7.6.473.26")
      ```

   3. 如果加载库时遇到问题，请将以下代码添加到 settings.gradle.kts 文件中，如 [AppNext 文档](https://developers.appnext.com/docs/android-sdk-installation)中所述：
      ```kotlin
      dependencyResolutionManagement {
         repositories {
            //...
            maven("https://dl.appnext.com/")
         }
      }
      ```

{% endlist %}
