How to add ads.txt file to your WordPress website

  • 13 / 08 / 2021
  • Agata Cnatalska
How to add ads.txt file to your WordPress website

An ads.txt file is highly recommended for all the monetization solutions to work correctly. It also applies to the websites built on WordPress. The file contains a list of vendors authorized to sell the website’s ad inventory in order to increase the transparency of programmatic advertising actions. Long story short, it’s a sort of public declaration of who can sell your ad space. Keep on reading to find out how to add an ads.txt file to your WordPress website.

Where to get the ads.txt from

There are two ways to get the ads.txt file. You can create the file by yourself or get it from your ad provider ⎼ some ad networks, like optAd360, provide publishers with all the monetization essentials, including ads.txt. In the article on how to create an ads.txt file, you’ll find a guide for both methods, along with all the necessary information that should be included. Alternatively, (assuming you use one of these solutions) you can generate the file’s base automatically from your Google AdSense or Google Ad Manager account and subsequently complement it with new ad vendors’ data.

How to add ads.txt on WordPress

The most convenient way to add, edit or update the ads.txt file on WordPress is using a dedicated plugin. The platform provides a whole set of different plugins that let you manage almost all kinds of files. You can install a chosen one following the steps presented in the article on implementing the AI Engine script on WordPress.

One of the free WordPress plugins designed for ads.txt management is Ads.txt Manager. That’s a pretty obvious name, isn’t it? Once implemented into your WordPress, it makes adding the file intuitive and effortless. See for yourself:

  1. Install and activate the Ads.txt Manager plugin.
  2. Find “Settings” on your Dashboard’s sidebar menu.
  3. Select “Ads.txt”.
  4. Insert all the necessary positions (copy them from the file you’ve created or received).
  5. Click on “Save Changes”.

Now, check if you didn’t make any mistakes while pasting the file positions and if all the elements are in place. Remember not to miss even a comma! If it all went well, you should be able to see the complete list of your Authorized Digital Sellers by adding “/ads.txt” to the address of your website. Simple as that!

Read also

How and why to update the ads.txt file
How and why to update the ads.txt file

How and why to update the ads.txt file

What’s the deal with updating your ads.txt file? When and why should you do that? Learn more about the actualization process and what to look out for on the way.

Read more
How to understand CPM and eCPM
How to understand CPM and eCPM

How to understand CPM and eCPM

Confused about CPM and eCPM? Here you'll find the most crucial information on what those metrics are and how to use them.

Read more

Find the best solutions
for your business

Benefit from expert knowledge

Start earning more

Registration to the optAd360 network

Increase your website’s revenue!

Join satisfied publishers who, thanks to the optimization of their advertising space
with our technology, started to generate greater profits.

Sign up