> For the complete documentation index, see [llms.txt](https://platform-business.gitbook.io/adx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform-business.gitbook.io/adx/zh/unity/integrate.md). Agents can also search and read this documentation through its [MCP server](https://platform-business.gitbook.io/adx/~gitbook/mcp).

# Integrate

## 0. 最新 ADX Unity SDK 版本 <a href="#adx-unity-library" id="adx-unity-library"></a>

{% hint style="success" %}
Version 2.9.2

Release Date : 2026/11/19
{% endhint %}

## 1. 最低支持规格

{% hint style="info" %}

* **Android**
  * compileSdkVersion **35** 以上
  * minSdkVersion **24** 以上
* **iOS**
  * iOS **15.0** 以上
  * Xcode **26.2** 以上
  * CocoaPods
* **Unity Editor**
  * Unity **2019.4** 以上
    {% endhint %}

## 2. 添加 ADX Unity SDK

1\) [下载](https://drive.google.com/file/d/143zO1Tj7EYev_UdQlXoUa64_o9OrATHq/view?usp=sharing) ADX Unity SDK。

2\) 选择 **Assets > Import Package > Custom Package**，然后将下载的 `ADXUnityPackage.unitypackage` 文件找到并添加，或 `ADXUnityPackage.unitypackage`双击以运行。

{% hint style="info" %}
当以新 Package 更新时，在导入 ADXUnityPackage 之前，请先删除以下所有文件夹和文件后再继续。

* 删除 Assets/ADXLibrary 文件夹
* 删除 Assets/GoogleMobileAds 文件夹
* 删除 Assets/Plugins/Android 文件夹中与 AdMob 相关的文件
* 删除 Assets/Plugins/iOS 文件夹中与 AdMob 相关的文件
  {% endhint %}

<img src="https://3685813980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmlH74WGKvqQtBVVPqIu%2Fuploads%2Fgit-blob-39339ae5c065b5bf29d06250b6d0c5b3f239e336%2F%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202021-06-03%20%EC%98%A4%ED%9B%84%203.54.44.png?alt=media" alt="" width="375">

3\) 选择所有文件并导入。

<figure><img src="https://3685813980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmlH74WGKvqQtBVVPqIu%2Fuploads%2Fgit-blob-890de178510a8986634f108332b2f926b2a56a39%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-02%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%201.33.16.png?alt=media" alt="" width="357"><figcaption></figcaption></figure>

4\) [Unity Play Services Resolver](https://github.com/googlesamples/unity-jar-resolver)如果已包含，请在 ADXUnityPackage 中排除 ExternalDependencyManager 后再导入即可。

<figure><img src="https://3685813980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmlH74WGKvqQtBVVPqIu%2Fuploads%2Fgit-blob-d8c6b12af9405f4fd80e6a29cfb51cb007610413%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202023-02-02%20%E1%84%8B%E1%85%A9%E1%84%92%E1%85%AE%201.39.49.png?alt=media" alt="" width="486"><figcaption></figcaption></figure>

## 3. 设置您的 AdMob 应用 ID

* 在 Unity 编辑器中，从菜单内依次选择 **Assets > Google Mobile Ads > Settings**。

<figure><img src="https://3685813980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmlH74WGKvqQtBVVPqIu%2Fuploads%2FuuR96BkSjpEOwvQK7xZ2%2Funity_gma_inspector_menu.png?alt=media&amp;token=5654e6a1-5662-494d-8636-131c043a76f8" alt="" width="263"><figcaption></figcaption></figure>

* 在相应字段中分别输入您的 Android 和 iOS AdMob 应用 ID。

<figure><img src="https://3685813980-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlmlH74WGKvqQtBVVPqIu%2Fuploads%2FaEAtRCSih83NFuTL1ltH%2Fsettings_app_ids.png?alt=media&amp;token=927afdea-aa2b-4b04-baaf-208257490eea" alt="" width="375"><figcaption></figcaption></figure>
