How to Add Adsense ads.txt File in Hostinger Wordpress Site in File Manager & Website Builder Easily
By Impran M N
Seeing an 'Earnings at risk' warning from AdSense usually means your ads.txt file isn't in the right place, and fixing it on Hostinger is quicker than it sounds. This guide covers two ways to add the file to a WordPress site on Hostinger — through File Manager or through the Website Builder — so AdSense can detect it correctly.
01Get your ads.txt file content
Copy the ads.txt content provided by your AdSense account, which needs to be placed at your site's root directory.
02Upload via File Manager
If you're using classic WordPress, open File Manager in Hostinger and upload the ads.txt file directly to the root folder.
03Add it through Website Builder
If your site uses Hostinger's native Website Builder instead, use its interface to place the ads.txt file correctly since the file structure works differently.
04Verify AdSense detects the file
After uploading, check that AdSense recognizes the ads.txt file and that the earnings at risk warning clears.
Frequently asked questions
Why does AdSense show an 'Earnings at risk' error?
This warning usually appears when your ads.txt file is missing or not placed correctly at your site's root directory.
Where exactly should ads.txt be uploaded?
It needs to sit at the root directory of your site so AdSense's crawlers can find and verify it.
Does the process differ between WordPress and Website Builder?
Yes, classic WordPress sites typically use File Manager, while Website Builder sites require adding the file through its own interface.
How do I know the fix worked?
Check your AdSense account to confirm the ads.txt warning has cleared after the file is correctly placed.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



