How To Add Google AdSense To Hostinger Website, Add Ads txt & Domain Verification code Easily 2026
By Impran M N
Getting Google AdSense fully connected to a Hostinger-hosted site takes two separate steps: verifying domain ownership and uploading an ads.txt file to the right location. This guide covers both, whether your site runs on WordPress, Hostinger's Website Builder, or custom HTML. Doing this correctly helps your site get approved faster and keeps your ad revenue reporting accurate.
01Get your AdSense verification code
From your AdSense account, copy the meta verification code Google provides for confirming ownership of your site.
02Add the verification code to your site's head section
Paste the meta code into the head section of your website, using your theme's header settings on WordPress or the equivalent option in Hostinger Website Builder.
03Upload the ads.txt file
Use Hostinger's File Manager, or the appropriate tool for your platform, to upload the ads.txt file to your site's root directory.
04Confirm setup across your platform
Whether you're on WordPress, Website Builder, or custom HTML, double-check both the verification code and ads.txt file are correctly placed for your specific setup.
Frequently asked questions
Do I need both the verification code and ads.txt file?
Yes — the meta verification code confirms domain ownership to AdSense, while the ads.txt file is a separate requirement that helps prevent unauthorized ad sales on your site.
Where does the ads.txt file need to go?
It needs to be uploaded to the root directory of your website so it's accessible at the top level of your domain, not buried in a subfolder.
Does this work if I built my site with Hostinger Website Builder instead of WordPress?
Yes, the tutorial covers both methods, since Website Builder and WordPress handle adding the verification code and ads.txt file slightly differently.
Will setting this up correctly speed up AdSense approval?
Correctly completing domain verification and ads.txt setup removes two common blockers, which can help your site move through AdSense's approval process more smoothly.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



