Is your advertisement network asking you to add the credential to an ads.txt files in your WordPress website? Ads.txt files allow ad networks to sell ads in your website and also protects publisher from ad fraud and increase revenue. In this guide you will learn how to create and manage ads.txt files in WordPress website.
What is Ads.txt File?
Ads.txt is the file that contains line of code to allow advertisement network to sell the ads in your website. Ads.txt (Advertisement Digital Sellers) is the initiative by the IAB Technology Laboratory to prevent ad fraud.
How to Create and Manage Ads.txt files in WordPress?
Ads.txt file need to host in your web server using FTP client but WordPress plugin made easy to add ads.txt file in one click without hassle.
Once installed click on Ads.txt under settings.
In the manage ads box pasta the line of code from your advertisement network.
For example if you are the publisher of Google Adsense you will find the the line of code same as below. Replace the pub-0000000000000000 ID with your own publisher ID and click on save changes.
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
How to Troubleshoot Earning at Risk Error in Adsense
Do you see warning message in your Google Adsense account?
When ads.txt file is missing in your web server or the codes in ads.txt are incorrect you will see following warning in Google Adsense account. You can see this guide on how to properly activate 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.
If you are seeing this error you can fix this error simply adding correct line of code provided in you Adsense account. Click on setting then ads.txt. In the manage ads box pasta the correct code with your publisher ID.
We hope this guide on how to create and manage Ads.txt files in WordPress is helpful. You may also like to see the list of 5 Best WordPress Ad Management Plugins.