Create, manage, and validate your ads.txt and app-ads.txt from within WordPress, just like any other content asset. Requires PHP 7.4+ and WordPress 5.7+.
What is ads.txt?
Ads.txt is an initiative by the Interactive Advertising Bureau to enable publishers to take control over who can sell their ad inventory. 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. 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.
- Requires PHP 7.4+.
- Requires WordPress 5.7+.
- Ad blockers may break syntax highlighting and pre-save error checking on the edit screen.
- Rewrites need to be enabled. Without rewrites, WordPress cannot know to supply
- Your site URL must not contain a path (e.g.
https://example.com/site/or path-based multisite installs). While the plugin will appear to function in the admin, it will not display the contents at
https://example.com/site/ads.txt. 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.
What about ads.cert?
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.cert is still in the extremely early stages so we don’t see any immediate concerns with implementing ads.txt.
Can I use this with multisite?
Yes! However, if you are using a subfolder installation it will only work for the main site. This is because you can only have one ads.txt for a given domain or subdomain per the ads.txt spec. Our recommendation is to only activate Ads.txt Manager per-site.
Imagens de tela
- Install the plugin via the plugin installer, either by searching for it or uploading a .zip file.
- Activate the plugin.
- Head to Settings → Ads.txt or App-ads.txt and add the records you need.
- Check it out at yoursite.com/ads.txt or yoursite.com/app-ads.txt!
Note: If you already have an existing ads.txt or app-ads.txt file in the web root, the plugin will not read in the contents of the respective files, and changes you make in WordPress admin will not overwrite contents of the physical files.
You will need to rename or remove the existing (app-)ads.txt file (keeping a copy of the records it contains to put into the new settings screen) before you will be able to see any changes you make to (app-)ads.txt inside the WordPress admin.
Contribuidores e desenvolvedores
“Ads.txt Manager” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.Contribuidores
Registro de alterações
- Changed: Update Support Level from
Stable(props @jeffpaul, @peterwilsoncc via #123).
- Changed: Update Cypress integration to use v11 (props @jayedul, @peterwilsoncc via #116).
- Fixed: Display
ads.txtfiles for crawlers using a cache busting query string (props @peterwilsoncc, @cadic via #118).
- Added: Support for OWNERDOMAIN & MANAGERDOMAIN per version 1.1 of the spec (props @SoftCreatR, @tott, @jeffpaul, @peterwilsoncc via #108)
- Added: Unit tests (props @jeffpaul, @cadic, @faisal-alvi, @peterwilsoncc via #87)
- Added: Dependency security scanning (props @jeffpaul, @peterwilsoncc via #97)
- Changed: Bump WordPress tested up to to 6.1 (props @jayedul, @dkotter, @jeffpaul, @peterwilsoncc via #113)
- Changed: Minimum WP and PHP version requirement bumped to 5.7 and 7.4 respectively (props @jayedul, @dkotter, @peterwilsoncc, @cadic via #103, #117)
- Fixed: Base URL corrected for E2E test suite. (props @peterwilsoncc, @cadic, @dkotter via #112)
- Security: Bump got and @wordpress/env (props @jeffpaul, @peterwilsoncc, @dependabot, @dkotter via #104)
- Security: Bump simple-git and @wordpress/env (props @jeffpaul, @peterwilsoncc via #105)
- Added: Support for the
INVENTORYPARTNERDOMAINvariable (props @dkotter, @faisal-alvi)
- Added: End to end tests with Cypress (props @cadic, @dinhtungdu, @darylldoyle, @Sidsector9)
- Changed: Update dealerdirect/phpcodesniffer-composer-installer from 0.5.x to 0.7.1 (props @evokelektrique, @peterwilsoncc)
- Changed: Update minimist from 1.2.5 to 1.2.6
- Changed: Bump WordPress tested up to to 6.0 (props @mohitwp, @cadic, @peterwilsoncc via #85, #90)
- Changed: Automated testing code compatibility against PHP versions from 5.3 to 8.1 (props @cadic)
- Fixed: Allow admins to access revisions (props @PypWalters, @dinhtungdu)
- Fixed: Coding standards violations (props @peterwilsoncc)
- Added: Support for app-ads.txt filetype (props @helen, @westi, @p0mmy)
- Removed: Stop attempting to show an error notice about an existing
ads.txtfile due to too many false positives. We will bring this back later in a better way.
- Changed: Bump WordPress version support to 5.4 (props @tmoorewp, @jeffpaul)
- Changed: Switched to using GitHub Actions instead of Travis for Continuous Integration (props @helen)
- Changed: Updated plugin screenshots and FAQs (props @jeffpaul, @helen)
- Fixed: Update capability check when saving ads.txt (props @eclev91)
Further changelog entries can be found in the CHANGELOG.md file.