---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://ads.yandex.com/helpcenter/en/dev/unity/admob.md
  - https://ads.yandex.com/helpcenter/ru/dev/unity/admob.md
  - https://ads.yandex.com/helpcenter/zh/dev/unity/admob.md
  - href: zh/dev/unity/admob.md
    type: text/markdown
    title: Markdown version
  - href: llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://ads.yandex.com/helpcenter/zh/llms.txt

# Google 集成



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

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

## 集成 {#integration}

1. 在 Yandex Advertising Network 界面和其他网络界面中 [设置聚合](https://ads.yandex.com/helpcenter/zh/monetization/yandex-mediation/setup.md)。
2. 将包 `yandex-mobileads-lite-8.3.0.unitypackage` 导入到项目中。
3. 从 **mobileads-mediation** 目录导入 `mobileads-google-mediation-8.3.0.unitypackage`。
4. 使用 **File** → **Build Settings** → **Android** → **Player Settings** → **Publishing Settings** → **Custom Main Manifest**（勾选框）创建主 **AndroidManifest.xml** 文件。

   使用名为 `com.google.android.gms.ads.APPLICATION_ID` 的 `<meta-data>` 标记将您的 Google AdMob (ex. AdMob) ID 添加到为应用创建的 **AndroidManifest.xml** 文件（以下是如何查找您的 [AdMob ID](https://support.google.com/admob/answer/7356431))。

   ```html
   <manifest>
       <application>
   ...
           <meta-data
               android:name="com.google.android.gms.ads.APPLICATION_ID"
               android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy"/>
   ...
       </application>
   </manifest>
   ```

