---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.4
alternate:
  - https://appmetrica.yandex.com/docs/en/settings/test-devices.md
  - https://appmetrica.yandex.com/docs/ru/settings/test-devices.md
  - https://appmetrica.yandex.com/docs/zh/settings/test-devices.md
  - href: https://appmetrica.yandex.com/docs/zh/settings/test-devices.md
    type: text/markdown
    title: Markdown version
  - href: https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r21698989
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r21698989

# 测试设备

测试设备用于测试[归因](https://appmetrica.yandex.com/docs/zh/mobile-tracking/testing-attribution.md)和[推送通知](https://appmetrica.yandex.com/docs/zh/push/marketing.md#test)。

要添加新设备，请指定其其中一个 ID，然后选择目的：**推送通知** 或 **再归因**。

可用的 ID 有以下几种：Google AID、Apple IDFA、IDFV、Huawei OAID 或 AppMetrica 设备 ID。

{% cut "如何找到你的 Google AID" %}

在设备上打开“Google 设置”应用，然后在菜单中选择**广告**。 您的 Google AID 显示在屏幕上，位于 **您的广告 ID** 下方。

{% endcut %}

{% cut "如何找到您的 Apple IDFA" %}

1. 在设备上安装应用 [The Identifiers](https://itunes.apple.com/us/app/the-identifiers/id564618183)。

2. 在应用中，打开 **Raw** 标签页。 您的设备的 IDFA 显示在 **广告标识符** 中。

{% note alert "" %}

从 iOS 14.5 开始，应用程序无法再访问 Apple 的 IDFA。 我们建议使用 AppMetrica 设备 ID。

{% endnote %}

{% endcut %}

{% cut "如何找到你的IDFV" %}

1. 在测试设备上安装您的应用。

2. 转到 **数据导出** → **导出到文件**，然后导出设置，包含 `ios_ifv` 参数。 导出时使用过滤条件（例如按`app_version_name`）。

3. 复制 **ios_ifv** 字段中的 ID。

{% endcut %}

{% cut "如何找到您的 Huawei OAID" %}

1. 在具有 EMUI 的手机上，前往 **设置** → **隐私** → **广告和隐私** → **更多信息**。

2. 在“**您的广告 ID**”标题下找到 ID。 复制它。

{% endcut %}

{% cut "如何找到你的 AppMetrica 设备 ID" %}

1. 在测试设备上安装您的应用。

2. 在[AppMetrica 网页界面](https://appmetrica.yandex.com)中，转到**报告**→**账户列表**。

3. 找到您的个人资料。 在搜索时，使用分段（例如按构建号或设备属性）。

4. 打开个人卡片，复制 `appmetrica_device_id`。

{% note alert "" %}

你不能再使用 AppMetrica 移动应用来获取 AppMetrica Device ID。 使用[AppMetrica 网页接口](https://appmetrica.yandex.com)即可。

{% endnote %}

{% endcut %}

<!-- source: zh/_includes/feedback-button.md -->
如果您没有找到所需答案，可以通过反馈表单提交您的问题。 请尽可能详细地描述问题。 如果可能，请附上截图。

<a href="../troubleshooting/feedback-new">
  <span class="button">联系支持</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">为文档提出改进建议</span>
</a>
<!-- endsource: zh/_includes/feedback-button.md -->
