Google AdMob 聚合
Google AdMob 聚合可用于对接到 Yandex Advertising Network。以下是将 Yandex Advertising Network 添加到 Google AdMob 聚合的方法:
- 集成 Google AdMob 聚合。
- 添加 Yandex Mobile Ads SDK 的适配器。
- 在 Yandex Advertising Network 界面 中为您希望的广告类型创建 AdUnitId。
- 在 Google AdMob 网络界面 中添加 Yandex Advertising Network。
- 同步两个网络界面中的广告单元设置。
添加 Yandex Mobile Ads SDK 的适配器
YandexMobileAdsAdMobAdapters 库已经适配了 CocoaPods 依赖管理系统,并支持静态集成方法。
要连接库,请将依赖项添加到项目的 Podfile 中:
pod 'YandexMobileAdsAdMobAdapters', '8.0.0.0'
在 Google AdMob 聚合网络界面中添加 Yandex Advertising Network
对于在 Google AdMob 聚合 (Google AdMob AdUnitId) 中创建的每个广告版位,在 Yandex Advertising Network 界面 (Yandex AdUnitId) 中创建一个 广告单元。
然后在 Google AdMob 聚合网页界面中添加 Yandex Advertising Network:
1. 创建 Google AdMob 广告单元
- 前往您的应用版块。
- 为所选广告格式创建广告单元,配置名称等广告单元参数。
- 创建广告单元后,保存其 ID。
2. 创建 Yandex 广告单元
有关在 Yandex Advertising Network 界面中创建广告单元的 说明。
3. 设置 Google AdMob 聚合
-
前往 Yandex Mediation 并点击 Create mediation group。
-
选择平台。
-
设置聚合组的参数(名称、区域等)并继续添加广告单元。
-
选择您的应用,然后选择创建的广告单元,并添加该单元。您添加的广告单元应显示在 Ad Units 部分中。
-
Yandex Advertising Network 只能作为自定义事件添加到 Google AdMob 聚合中。转到添加自定义事件(Add Custom Event 按钮)。您需要为在 Yandex Advertising Network 界面中创建的每个 adUnitId 设置/重复自定义事件。
-
通过设置事件名称和 eCPM 底价,配置用于访问 Yandex Advertising Network 的自定义事件。eCPM 底价值必须与广告单元的 Yandex Advertising Network 界面中的阈值匹配。
-
设置自定义事件到 Yandex 适配器的映射:
- 设置映射名称。
- 设置与您选择的广告格式相对应的适配器类名称。
- 设置事件参数。
每种广告格式都有相应的 Yandex 适配器类:
YMAAdMobCustomEventBanner适用于横幅广告。YMAAdMobCustomEventInterstitial适用于插屏广告。YMAAdMobCustomEventRewarded适用于奖励广告。YMAAdMobCustomEventNative适用于原生广告
在Parameter中,以 JSON 格式配置自定义事件设置。您必须为广告单元设置 Yandex 广告单元 ID。
-
保存更改。