> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://helpdesk.ezmob.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 站长 ads.txt 设置指南

ads.txt 文件列出了获准销售您广告资源的公司。该文件为可选项，但建议设置。如需获取 EZmob 最新的 ads.txt 记录，请将您的域名发送邮件至 support@ezmob.com。

## 将 ads.txt 添加到网站

1. 创建一个名为 `ads.txt` 的纯文本文件。
2. 粘贴 EZmob 发给您的记录，每条一行。保留其他合作伙伴已有的记录。
3. 将文件上传到您域名的根目录。
4. 在浏览器中打开 `https://yourdomain.com/ads.txt`，确认可以正常加载。

## WordPress

- 如果您可以访问主机，请将 `ads.txt` 上传到网站的根文件夹。
- 如果无法访问，请使用可在 WordPress 后台管理 ads.txt 的插件，并在其中粘贴记录。

## Blogger

1. 在 Blogger 中打开 **设置**（Settings），然后向下滚动到 **获利**（Monetization）。
2. 开启 **自定义 ads.txt**（Custom ads.txt）。
3. 点击 **自定义 ads.txt**，粘贴记录并保存。

## 注意事项

- 文件必须位于根域名下，而不是子文件夹中。
- 对于移动应用，对应的文件为 `app-ads.txt`。

## 截图

- *截图：Blogger 设置 → 获利，突出显示“自定义 ads.txt”*

## 相关文章

- [如何在 WordPress 的 <head> 中添加广告代码](https://helpdesk.ezmob.com/zh/article/how-to-add-an-ad-tag-to-head-section-in-wordpress-1rxwkoz/)
- [如何在 Blogger 的 <head> 部分添加广告代码](https://helpdesk.ezmob.com/zh/article/how-to-add-an-ad-tag-to-head-section-in-blogger-platform-1qjgse5/)
- [通过 EZmob 头部竞价（Header Bidding）实现变现](https://helpdesk.ezmob.com/zh/article/header-bidding-monetization-with-ezmob-17ooltx/)
- [站长常见问题（FAQ）](https://helpdesk.ezmob.com/zh/article/frequently-asked-questions-publishers-faq-169lfj5/)