启用 Unity Ads
支持的广告格式
集成
Android
iOS
-
在 Yandex Advertising Network 界面和其他网络界面中 设置聚合。
-
将依赖项添加到应用级别的 build.gradle 文件中:
implementation 'com.yandex.android:mobileads:7.13.0' implementation 'com.yandex.ads.mediation:mobileads-unityads:4.14.2.1'
备注
要在移动聚合中跟踪应用安装,您需要为适配器配置 Info.plist。请按照广告网络 文档 进行操作。
要使用 Unity Ads,您必须连接 UnityAdsYandexMobileAdsAdapters
库。
UnityAdsYandexMobileAdsAdapters
库已经适配了 CocoaPods 依赖管理系统,并支持静态集成方法。
-
在 Yandex Advertising Network 界面和其他网络界面中 设置聚合。
-
要连接库,请将依赖项添加到项目的 Podfile 中:
pod 'UnityAdsYandexMobileAdsAdapters', '4.14.4.7'