集成 AppNext

支持的广告格式

集成

  1. 在 Yandex Advertising Network 界面和您的广告网络账户中配置聚合。

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

    implementation("com.yandex.android:mobileads:8.7.1")
    implementation("com.yandex.ads.mediation:mobileads-appnext:2.7.6.473.27")
    
  3. 如果库无法加载,请按照 AppNext文档中的步骤将此代码添加到您的 settings.gradle.kts 文件中:

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