启用 AppNext

支持的广告格式

集成

  1. 在 Yandex Advertising Network 界面和其他网络界面中设置聚合

  2. 将依赖项添加到应用级别的 build.gradle.kts 文件中的 androidMain.dependencies 块:

    implementation("com.yandex.android:mobileads:8.1.0")
    implementation("com.yandex.ads.mediation:mobileads-appnext:2.7.6.473.21")
    
  3. 如果加载库时遇到问题,请将以下代码添加到 settings.gradle.kts 文件中,如 AppNext 文档中所述:

    dependencyResolutionManagement {
       repositories {
          //...
          maven("https://dl.appnext.com/")
       }
    }
    
上一篇
下一篇