ads.txt generator and validator
Add one line per ad account. For AdSense, just paste your publisher ID (pub-...). The file goes in the root of the domain: yoursite.com/ads.txt.
How to useAn error-free ads.txt for AdSense
Check an ads.txt
ads.txt generator and validator: what it is for
ads.txt, created by the IAB Tech Lab, publicly lists who can sell ad space on your site and stops others from selling ads in your name. Without it, AdSense shows a warning and revenue can drop.
Build the lines with the network domain, account ID, DIRECT or RESELLER and the certification authority ID (Google's, f08c47fec0942fa0, is filled in automatically), plus contact and subdomains. Paste an existing ads.txt to check for missing fields, badly formatted Google IDs and duplicate lines.
How to use
- Add the AdSense line with your pub- ID.
- Include other networks and partners.
- Download it and publish it at yoursite.com/ads.txt.
When to use it
- Blogs and portals with AdSense.
- Sites with several ad networks.
- Checking ads.txt before publishing.
Frequently asked questions
What is ads.txt?
It is a public file, created by the IAB Tech Lab, that lists who is authorized to sell ad space on your site. It stops others from selling ads while pretending to be you. AdSense shows a warning and may reduce revenue when the file is missing or wrong.
What do DIRECT and RESELLER mean?
DIRECT means the account on the ad network is yours. RESELLER means another company (a partner or intermediary) sells the space on your behalf with its own account. On AdSense, your line is always DIRECT.
What is the AdSense line?
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0, with your publisher ID in place of the zeros. The last field is Google's certification ID, the same for everyone.
Is it really free?
Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.