---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.3
alternate:
  - https://ads.yandex.com/helpcenter/en/monetization/app/ads-txt.md
  - https://ads.yandex.com/helpcenter/pt/monetization/app/ads-txt.md
  - https://ads.yandex.com/helpcenter/ru/monetization/app/ads-txt.md
  - https://ads.yandex.com/helpcenter/zh/monetization/app/ads-txt.md
  - href: zh/monetization/app/ads-txt.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

# App-ads.txt 文件

<!-- source: zh/_includes/common/app/ads-txt.md -->
<!--
ГОТОВО
Текст в РМП: mobile-ads/zh/monetization/app/ads-txt.md
Текст в Trustmon: —
-->

在 app-ads.txt 中，应用所有者指明了可以在应用中销售广告版位的广告网络及其合作伙伴的列表。开发者独立发布 app-ads.txt。

ads.txt 协议是在线广告行业标准之一，[由互动广告局 (IAB) 开发](https://iabtechlab.com/ads-txt)。_Ads_ 代表 _authorized digital sellers_。

## 为什么要发布 app-ads.txt？{#how-work}

Yandex Advertising Network 会展示来自直接广告主 Yandex 和其他需求方平台 (DSP) 的广告。这意味着更多广告主会竞相争取在您的应用中展示广告的权利，并且会根据不同国家和地区的用户匹配广告。因此，您的变现收入会增加。

部分 DSP 会使用 app-ads.txt 来检查哪些广告网络已获得授权：此类广告网络可展示应用内广告，但若是缺少 app-ads.txt 文件，则不会购买广告曝光量。

此外，app-ads.txt 是[确认应用访问权限](https://ads.yandex.com/helpcenter/zh/monetization/app/add.md#verify-app) 的方法之一。Yandex Advertising Network 使用 app-ads.txt 检查应用中的广告单元是否由实际具有应用访问权限的用户配置。

## 如果 app-ads.txt 文件已发布 {#published-file}

请将 Yandex Advertising Network 中的行添加到已发布的文件中。您可以在界面中获取一段特殊的代码片段。在左侧菜单中，前往 [Settings](https://partner.yandex.com/v2/settings) → **General**，然后点击 **app-ads.txt**。

## 如何创建和发布 app-ads.txt {#how-to-add-strings}

### 步骤 1. 检查或指定应用商店中开发者网站的网址 {#step-1}

确保应用商店中显示的是当前网站地址。广告平台将使用此地址搜索和验证 app-ads.txt。

如果您没有自己的网站，我们建议您创建一个。

### 步骤 2. 获取 app-ads.txt 所需的行 {#step-2}

您可以通过 Yandex Advertising Network 界面获取一段特殊的代码片段。下载包含所需行的文件 — 在左侧菜单中，前往 [Settings](https://partner.yandex.com/v2/settings) → **General**，然后点击 **app-ads.txt**。

{% note info %}

如果您使用多个广告网络进行应用变现，我们建议您将每个广告网络的代码片段到文件中。为此，请联系每个广告网络，请求用于 app-ads.txt 的行。

{% endnote %}

#### 行结构 {#string-structure}

该行包含广告平台的域名、合作伙伴 ID 以及与卖家的关系类型。

示例：`example.com, 1234, DIRECT`。

以下是可用的卖家关系类型：

- DIRECT：您直接合作的广告网络。
- RESELLER: 通过第三方聚合销售媒体包的合作伙伴。

请勿将您未合作公司的信息添加到代码中。

### 步骤 3. 创建文件 {#step-3}

打开任意文本编辑器（例如记事本），列出所有广告网络的行，并将文件另存为 _app-ads.txt_。

### 步骤 4. 上传文件 {#step-4}

将 app-ads.txt 文件添加到开发者网站的根目录。根目录是顶级域名后面的文件夹（例如 `example.com/app-ads.txt`）。

要检查文件是否已正确上传，请在浏览器的地址栏中将 `app-ads.txt` 添加到应用域名（例如 `example.com/app-ads.txt`）。如果文件已正确发布，您将看到其内容。

### 步骤 5. 定期更新文件 {#step-5}

广告网络合作伙伴可能会发生变化。我们建议您定期检查 app-ads.txt 文件是否为最新版本。对于 iOS 和 Android 应用，您可以在 Yandex Advertising Network 界面中执行此操作。

## App-ads.txt 的状态 {#statuses}

对于 Google Play 和 App Store 中的应用，Yandex Advertising Network 每 24 小时检查一次在应用商店页面指定的开发者网站上的 app-ads.txt 文件。如果找不到该文件或该文件包含错误，状态将这样显示。请按照以下步骤解决您的状态问题：

#|
|| **状态** | **解决方案** ||
|| **There is no data about the file {{ yan-app-ads-txt }}, since the developer’s website was not found** | 将开发者网站添加到 Google Play 或 App Store 中的应用页面。Yandex Advertising Network 将使用它来搜索和验证 app-ads.txt。请确保该文件已添加到网站的根目录。

如果已指定网站，但您仍然在界面中看到此状态，请联系支持人员。||
|| **File {{ yan-app-ads-txt }} outdated** | 更新开发者网站上的 app-ads.txt 文件。为此，请将 Yandex Advertising Network 界面中缺失的行复制到您的文件中，然后将其上传到开发者网站。之后，在 Yandex Advertising Network 界面中点击 **Send for verification**。||
|| **File {{ yan-app-ads-txt }} not found on the site** | 按照以下 [说明](#how-to-add-strings) 将 app-ads.txt 文件添加到开发者的网站根目录。该文件必须直接放置在根目录中，即紧随顶级域名之后的文件夹。该文件的地址应如下所示：`example.com/app-ads.txt`。

如果文件位于指定地址，但界面中仍显示此状态，请联系支持人员。||
|#


{% cut "界面显示效果" %}

![](../_images/app-ads-txt.png)

{% endcut %}



{% note info %}

问题解决后，界面中的状态将在 24 小时内更新。

{% endnote %}
<!-- endsource: zh/_includes/common/app/ads-txt.md -->


<!-- source: zh/monetization/_includes/support.md -->
[联系支持部门](https://ads.yandex.com/helpcenter/zh/support/contact.md){.button}


<!-- endsource: zh/monetization/_includes/support.md -->


