How to add ads.txt file to WordPress


Do you want to add an ads.txt file to WordPress? Or you have no idea what an ads.txt file is?

If any of these situations apply to you, please read this Ads.txt admin notice as I will:

  • Explain what ads.txt is and whether your WordPress site needs it or not.
  • show you how to use the free Ads.txt admin plugin to easily add and manage ads.txt file for your WordPress site.

I’ll start by explaining  in general. Next, I’ll look at how the plugin helps you add and manage your ads.txt file (it’s pretty simple!).

What is Ads.txt?

I normally like to start my reviews with the plugin’s features. But I think it will be a foreign concept to many webmasters, so it deserves some explanation before we get into the plugin.

As robots.txtads.txt is a simple file that allows you to communicate important information through code.

The difference is that while robots.txt focuses on how crawlers interact with your website,  Targets… you guessed it, advertisements.

So why do you need a file that communicates information about advertisements behind the scenes?

Well, it all has to do with the sometimes super shady world of programmatic advertising.

With programmatic advertising, you don’t sell your stock to a specific advertiser, but open it up to the highest bidder. Placing Google AdSense on your site is probably the best example for most WordPress sites if you’re not familiar, but there are countless of them.

What’s wrong with programmatic advertising?

There is nothing wrong with programmatic advertising. But since everything is done programmatically, there are many opportunities for fraud.

Unscrupulous people do things like:

  • Sell ​​ghost ad inventory on sites that don’t belong to them
  • Place ad inventory on sites other than those listed

These different types of fraud were such a serious problem that the Interactive Advertising Bureau (IAB) created ads.txt.

So what does Ads.txt do?

Allows you to explicitly list all locations that are allowed to sell ad inventory on your website.

You put in the file all the services authorized to sell your site’s advertising inventory. So:

  • Ad systems can verify that they are actually authorized to sell inventory on a site
  • Individuals can verify that the site they purchase ad inventory from actually supports the ad system

Essentially, the goal is to increase the transparency of programmatic advertising by creating a public record of exactly who is authorized to sell a website’s ad inventory.

Is Ads.txt actually used by the services?

Yes! Although not all services require you to use ads.txt, at least most of them to advise that you use on your site.

For example, this is how Google expresses it in AdSense Support Documents:

You don’t have to use ads.txt, but we recommend that you do. An ads.txt file can help buyers identify counterfeit inventory and help you get more ad spend that would otherwise have gone to counterfeit inventory.

Does every WordPress site need an Ads.txt file?

No. As I said,  focuses on one specific element:

Programmatic advertising.

So if you don’t sell ads on your site through programmatic services, don’t worry.

But if you sell ads through services like:

  • google adsense
  • adsterra
  • etc.

In this case, you should definitely consider using ads.txt on your site to prevent unauthorized resellers from misrepresenting your inventory.

In addition, some services require you to list them in your ads.txt file in order to use the service. So while optional for something like Google AdSense, it may be required for other services.

What the WordPress Ads.txt Admin plugin does

Ok, now that you know what ads.txt is, here’s how Ads.txt Admin can really help:

  • It creates the ads.txt file for you.
  • It allows you to manage all your authorized sellers or resellers right from your WordPress dashboard, without having to manually edit the file on your server.

Yes! It’s that simple. And best of all, it’s all free and listed on

This is how it works:

Practice with Ads.txt admin

Once you’ve installed and activated  Admin, you don’t need to configure anything.

Instead, you can go directly to Manage by Unveil Media in your dashboard to manage your ads.txt file:

To use the plugin, you just need to enter the four parts that make up an entry:

  • Domain name of the advertising system – the actual domain name of the approved advertising system.
  • Publisher Account ID – your own account ID on this advertising system.
  • Account/relationship type – whether you sell directly through this service or are a reseller.
  • Certificate Authority ID – This is an ID that identifies the ad system. You should be able to get it from any…

Leave a Comment