Adsense states that ads.txt file not found in WordPress
I’ve got my site approved in Google Adsense. I move my site from Bluehost to Managed WordPress from The-Online.com last week, but adsense states that it can’t find ads.txt file on my wordpress site. WordPress is installed on root domain. How can I resolve this quickly?
If you got to your site via browser https://example.com/ads.txt do you find this file? Is there any error shown? Many a times wordpress shows 404 not found error. To fix this easily just use Ads.txt Manager plugin from wordpress.org. It will automatically create the ads.txt file for you. Then adsense can verify it within couple of hours.
Use a FTP manage either inside your cPanel or Directadmin or even external FTP like WinSCP and upload the ads.txt file to the root directory manually. Make it UTF-8. And also include your adsense publisher ID too. Ensure the ads.txt file has right permission to access it. To know the permissions given go to the FTP manager and right click the file to check the permission. It should have read permission in order for google adsense bot to read it and so it can verify it.
Is your ads.txt file not detectable. One easy way is to go to Google Search Console and verify that Google can access your ads.txt file. It will show if there are any issues with the file’s availability. Just put that URL in URL inspection box to retrive!
AdSense requires the ads.txt file to be publicly accessible. Check the file permissions on the new site and ensure it’s set to read-only (444) for everyone. Also, disable or refresh your site’s cache if you are using an caching plugin or litespeed server, or cloudflare page cache. Check you browser cache too, as it can serve stale 404 not found page. There can be some plugins that can interfere with ad-s.txt file. Deactivate ad-related plugins. If you have any plugins managing ads, temporarily deactivate them to see if they’re interfering with the ads.txt file.