How to Create and Manage ads.txt files in WordPress

Would you like to create and manage the ads.txt file on WordPress? Ads.txt file protects publishers from advertising fraud, and it can potentially increase your ad revenue. In this post, we will show you how to easily create and manage an ads.txt file on WordPress.

What is the Ads.txt file?

Advertising fraud costs millions of dollars in damage to online advertisers and publishers each year that allows publishers to declare who can sell ads on their website. Malicious people continually try to deceive advertising platforms with domain spoofing, fake clicks, false impressions, and more.

Ads.txt stands for Authorized Digital Sellers and is a simple, flexible and secure method that publishers and distributors can use to publicly declare the companies they authorize to sell their digital inventory.

Like robots.txt, ads.txt is a simple file that allows you to communicate important information via code.

According to the IAB tech lab, by creating a public record of Authorized Digital Sellers, ads.txt will create greater transparency in the inventory supply chain, and give publishers control over their inventory in the market, making it harder for bad actors to profit from selling counterfeit inventory across the ecosystem.

How to Create and Manage Ads.txt Files in WordPress?

The first thing to do is to install and activate the plugin Ads.txt Manager . For more details, see our step-by-step guide on how to install a WordPress plugin .

After activating the plugin, you must visit the page Settings »Ads.txt to configure the plugin settings.


The plugin provides a simple text area where you can add lines to declare each individual platform or reseller. For example, you can add the following line to declare Google Adsense., pub-0000000000000000, DIRECT, f08c47fec0942fa0
Remember to replace pub-0000000000000000 with your own publisher ID.

The third field declares the type of DIRECT or RESELLER relationship. The last field is optional and represents an identifier of the advertising platform. For all Google advertising programs, you will use the same unique ID.

Troubleshoot risky income Error on Adsense

A missing statement in your ads.txt file may result in the following warning message in your Google Adsense account.

Troubleshooting Earnings at risk Error in Adsense

Warning message in your Google Adsense account.

Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID. 
Fix this now to avoid severe impact to your revenue.

you can check ads.txt file in your url apply file. Enter your site url

Final Thoughts On Ads.txt

Ads.txt Admin is definitely solving a niche problem, so it’s not something that every WordPress site is going to need.

But if you do sell ad space programmatically (which a lot of WordPress sites do), you should use an ads.txt file on your site to control the authorized advertising systems.

Social Share

Leave a Comment