Ads.txt Manager


就像任何其他内容一样,从WordPress内部创建,管理和验证您的Ads.txt。需要PHP 5.3+和WordPress 4.9+。


Ads.txt是互动广告局的一项举措,可让发布商控制谁可以销售其广告资源。 通过我们10up与各种发布商的合作,我们创建了一种在WordPress中管理和验证ads.txt文件的方式,无需上传文件。 插入到插件中的验证有助于避免格式错误的记录,这可能导致最终缓存达24小时的问题,并可能导致广告收入下降。


  • 需要PHP 5.3+。
  • 需要WordPress 4.9 +。旧版本的WordPress不会显示任何语法高亮显示,也可能会导致JavaScript错误和/或无法本地化该插件。
  • Ad blockers may break syntax highlighting and pre-save error checking on the edit screen.
  • 需要启用重写。没有重写,被要求时WordPress不知道供应/ads.txt
  • Your site URL must not contain a path (e.g. or path-based multisite installs). While the plugin will appear to function in the admin, it will not display the contents at This is because the plugin follows the IAB spec, which requires that the ads.txt file be located at the root of a domain or subdomain.


我们正在密切关注广告欺诈领域的持续发展,并且将此插件视为创建和管理ads.txt文件的一种方式,同时也为将来的更改和规格升级做好准备。 Ads.cert仍处于非常早期的阶段,所以我们没有看到实施ads.txt的任何直接问题。

What about app-ads.txt?

We plan on adding support for this file in the future! If you’d like to follow along with development or even help us get it done, please see this GitHub issue.


  • 带有误差的编辑ads.txt文件的例子


  1. 通过插件安装器安装插件,通过搜索或上传.zip文件。
  2. 激活插件。
  3. 前往“设置”>>Ads.txt并添加您需要的记录。
  4. 在上查看!




Thanks for your excellent plugin. I really didn't want to add yet another plugin just to deal with Google Adsense ads.txt but this is the only thing that has worked for me after spending a long time trying to make a straightforward file in the root directory work. Thanks again.
Despite the opinion of the previous speaker, I decided to install this plugin. Google stopped swearing at the absence of the required file, and the file itself was accessible via the necessary link. Author, thanks for the plugin!
Plugin failed to create the ads.txt file in the location Google requires. It was assumed this plugin would achieve this simple task, and as a result revenue was lost, not to mention the strained relationship with Google for not complying with them. My advise is to just follow the simple instructions from Google. You don't need this plugin.
Before, we had a file checked in to our repo for ads.txt. This meant that when changes needed to be made, someone had to edit the file, commit it and do a PR that needed to be removed. Thanks to this plugin, now the programmatic team can just login to WordPress and manage the Ads file. No PRs that require a signoff means we can be more nimble and the automated error checking helped us fix a problem as soon as we activated the plugin.
Read all 7 reviews

Contributors & Developers

“Ads.txt Manager” is open source software. The following people have contributed to this plugin.


“Ads.txt Manager” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Ads.txt Manager” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.




  • 更好的错误消息格式(包装<code>标签中的值以提高可读性)
  • VIP批准转义


  • 初始插件发布