Do you wish to use WordPress to produce and manage ads.txt files? The Ads.txt file protects publishers from ad fraud while also increasing ad revenue. We’ll show you how to create and manage ads.txt files in WordPress in this tutorial.
What exactly is the Ads.txt file?
Publishers can designate who can sell advertising on their website in the ads.txt file. It is a project of the IAB Tech Lab, a non-profit organization dedicated to enhancing digital advertising standards.
Google’s advertising networks, such as Google Adsense, Doubleclick, and Ad Exchange, are supporting the project. Many other big digital advertising platforms also support it.
Why is the Ads.txt file necessary?
Ad fraud costs online advertisers and publishers millions of dollars each year. People with malevolent intent use domain spoofing, fraudulent clicks, fake impressions, and other methods to fool ad systems.
By allowing publishers to indicate who can sell their ad inventory, the Ads.txt file enhances transparency in internet advertising. The following is how it works:
If you are an advertiser and someone tells you that your ad can be displayed on a specific website, you should look at the ads.txt file for that website. It will tell you whether or not the company you’re dealing with has permission to sell advertising space on that specific website.
Advertisers, publishers, and resellers can crawl, store, and search this data because it is publicly available.
Many different advertising platforms and technologies support or demand the use of the ads.txt file.
In WordPress, how do you make and manage Ads.txt files?
To configure plugin settings, go to Settings » Ads.txt after activating the plugin.
The plugin has a simple text box where you may add lines to declare each platform or reseller separately. To declare Google Adsense, for example, add the following line.
Remember to use your own publisher ID for pub-0000000000000000.
This line, as you can see, has four fields separated by a comma. The domain of the company authorized to sell or resell your ad inventory is the first field. After that, it has your publisher ID, which corresponds to your advertising platform account ID.
The third column specifies whether the relationship is DIRECT or RESELLER. The final field is optional and serves as an advertising platform ID. You’ll use the same unique ID for all Google advertising programs.
Earnings at Risk Error in Adsense Troubleshooting
Your Google Adsense account may display the following warning message due to a missing declaration in your ads.txt file.
Earnings at risk – Your AdSense publisher ID is missing from one or more of your ads.txt files. Fix it now to avoid a significant drop in revenue.
This message indicates that your publisher ID is missing from your ads.txt file. To fix this message, go to Settings » Ads.txt and double-check that the publisher ID in the plugin settings is correct.
This plugin currently only works for root-level domains like example.com because the ads.txt file is supposed to be in the root directory of a domain name. WordPress installed in a subdomain, subdirectory, or a single site in a multi-site network does not work.
We hope this article has taught you how to use the ads.txt file in WordPress.