EN
PortuguêsEnglishEspañol
All tools
Developer tools 100% free

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 use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to SEO and publishing

An error-free ads.txt for AdSense


Check an ads.txt

Available in: PortuguêsEnglish

Advertisement

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

  1. Add the AdSense line with your pub- ID.
  2. Include other networks and partners.
  3. 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.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.