If you’ve not set up Adsense ads.txt file for your blog, you will likely see the error message below displayed when you sign in to your 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 want to fix this error, click on the “ACTION” button, copy the ads.txt code displayed and paste it in your blog ads.txt file.
After 24 -48hrs, the error will disappear.
For Blogger, read how to set up ads.txt file on Blogspot blogs.
For WordPress, go to your cPanel file manager and update your ads.txt file, else create new file “ads.txt” in the root folder.
You can view your blog ads.txt file @