Create, manage, and validate your ads.txt from within WordPress, just like any other content asset.
与其他任何内容资产一样,可以在WordPress中创建,管理和验证ads.txt。
Requires PHP 5.3+ and WordPress 4.9+.
需要PHP 5.3+和WordPress 4.9 +。 p>
What is ads.txt?
什么是ads.txt? h3>
Ads.txt is an initiative by the Interactive Advertising Bureau to enable publishers to take control over who can sell their ad inventory.
Ads.txt是互动广告局的一项举措,旨在使发布商可以控制谁可以出售其广告资源。
Through our work at 10up with various publishers, we’ve created a way to manage and validate your ads.txt file from within WordPress, eliminating the need to upload a file.
通过与多家发布商在10up的合作,我们创建了一种方法,可以在WordPress中管理和验证ads.txt文件,而无需上传文件。
The validation baked into the plugin helps avoid malformed records, which can cause issues that end up cached for up to 24 hours and can lead to a drop in ad revenue.
插件中进行的验证有助于避免记录格式错误,记录格式错误可能导致问题最终被缓存长达24小时,并可能导致广告收入下降。 p>
Technical Notes
技术说明 h3>
- Requires PHP 5.3+.
- 需要PHP 5.3 +。 li>
- Requires WordPress 4.9+.
- 需要WordPress 4.9+。
Older versions of WordPress will not display any syntax highlighting and may break JavaScript and/or be unable to localize the plugin.
较旧的WordPress版本不会显示任何语法突出显示,并且可能会破坏JavaScript和/或无法对插件进行本地化。 li>
- Ad blockers may break syntax highlighting and pre-save error checking on the edit screen.
- 广告拦截器可能会破坏语法高亮显示并在编辑屏幕上预先保存错误检查。 li>
- Rewrites need to be enabled.
- 需要启用重写。
Without rewrites, WordPress cannot know to supply /ads.txt
when requested.
如果不进行重写,WordPress将无法在请求时提供 /ads.txt code>。 li>- Your site URL must not contain a path (e.g.
https://example.com/site/
or path-based multisite installs). - 您的网站网址不得包含路径(例如
https://example.com/site/ code>或基于路径的多站点安装)。While the plugin will appear to function in the admin, it will not display the contents at https://example.com/site/ads.txt
.
虽然该插件似乎可以在admin中运行,但不会在 https://example.com/site/ads.txt code>上显示内容。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.
这是因为该插件遵循IAB规范,该规范要求ads.txt文件位于域或子域的根目录。 li>
ul>
What about ads.cert?
ads.cert怎么样? h3>
We’re closely monitoring continued developments in the ad fraud space, and see this plugin as not only a way to create and manage your ads.txt file but also be prepared for future changes and upgrades to specifications.
我们正在密切监视广告欺诈领域的持续发展,并将此插件视为不仅用于创建和管理ads.txt文件的一种方式,还可以为将来的更改和规格升级做好准备。
Ads.cert is still in the extremely early stages so we don’t see any immediate concerns with implementing ads.txt.
Ads.cert仍处于极早期阶段,因此我们认为实施ads.txt不会引起任何直接关注。 p>
What about app-ads.txt?
app-ads.txt怎么样? h3>
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
.
GitHub问题
。 p>