If you monetize a Blogger or WordPress site, you have probably seen the term ads.txt. It is a small text file that stops unauthorized sellers from reselling your ad inventory — and for some networks like Google AdSense it can affect approval and fill rates. Here is what ads.txt is and how to create one for Blogger in a few minutes.

What Is ads.txt?

ads.txt (Authorized Digital Sellers) is an IAB standard. It is a plain-text file that publicly lists the companies authorized to sell advertising on your site. When ad exchanges check the file, they only buy inventory from sellers you have approved, which reduces ad fraud and makes your inventory more trustworthy.

Symptoms of a Missing ads.txt

  • AdSense or other networks warning about an invalid ads.txt.
  • Reduced fill rates and revenue leakage.
  • Lower trust scores with premium programmatic buyers.

How to Create ads.txt for Blogger

  1. Copy the ads.txt line from your ad network dashboard (e.g. AdSense: google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0).
  2. Add the file to your site root and link it from the header or footer.
  3. Verify in your network dashboard that ads.txt is "seen".

Instead of editing lines by hand (one wrong ID kills the file), use a generator that understands the format:

Create your ads.txt file free with the Blogger ads.txt generator →

Enter your publisher ID, pick your networks, and the generator outputs a validated ads.txt you can download instantly.

Your First ads.txt Line — Explained

google.com, pub-1234567890, DIRECT, f08c47fec0942fa0 breaks down as: domain of the seller (google.com), the publisher account ID (pub-...), the relationship type (DIRECT means you sell on your own behalf), and a certification authority ID that verifies the seller.

FAQ — Frequently Asked Questions

Does ads.txt affect AdSense approval?

Not directly for approval, but an ads.txt file improves ad quality signals and is strongly recommended for monetization health.

Can I have multiple ads.txt lines?

Yes. Each network you sell through gets its own line — Google, plus any direct partners, each on separate lines.

Where do I place ads.txt on Blogger?

ads.txt must be reachable at the root, e.g. yourblog.blogspot.com/ads.txt. Host uploads differ from Blogger pages, so use the network's recommended placement method.

What files can I place if I am on a custom domain?

If your custom domain does not expose ads.txt at the root, use a robots.txt or a reference from the homepage so crawlers find the ad seller declaration.