---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/ad-monetization/dev/ios/unityads.md
  - https://boost.yandex.com/doc/ru/ad-monetization/dev/ios/unityads.md
  - https://boost.yandex.com/doc/zh/ad-monetization/dev/ios/unityads.md
  - href: https://boost.yandex.com/doc/zh/ad-monetization/dev/ios/unityads.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

# 启用 Unity Ads



{% note info "支持的库和平台版本" %}

**Yandex Mobile Ads SDK：**
- 支持的最低 8.6.0 版本
- 8.6.0 的当前版本
- 支持的最高 8.6.1 版本（不包括）

**Unity Ads SDK：**
- 支持的最低 4.16.6 版本
- 4.16.6 的当前版本
- 支持的最高 4.16.7 版本（不包括）

[版本历史](https://boost.yandex.com/doc/zh/ad-monetization/dev/ios/changelog-ios.md#unity-ads)

{% endnote %}

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

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

## 集成 {#integration}

<!-- source: zh/ad-monetization/dev/_includes/unityads-ios.md -->
{% note info %}

要在移动聚合中跟踪应用安装，您需要为适配器配置 Info.plist。请按照广告网络 [文档](https://unityads.unity3d.com/help/ios/skadnetwork-ids) 进行操作。

{% endnote %}

要使用 [Unity Ads](https://github.com/Unity-Technologies/unity-ads-ios)，您必须连接 `UnityAdsYandexMobileAdsAdapters` 库。

`UnityAdsYandexMobileAdsAdapters` 库已经适配了 CocoaPods 依赖管理系统，并支持静态集成方法。

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

2. 要连接库，请将依赖项添加到项目的 Podfile 中：
   ```
   pod 'UnityAdsYandexMobileAdsAdapters', '4.20.0.1' 
   ```
<!-- endsource: zh/ad-monetization/dev/_includes/unityads-ios.md -->

