Home › SEO Tools › Site Files & Policies

Ads.txt Generator

ads.txt tells ad buyers which accounts are allowed to sell your site's ad inventory — it protects you from counterfeit inventory fraud. Format your seller lines correctly and download a ready file.

Use the tool

How to use the Ads.txt Generator

  1. Enter one seller per line: domain, publisher ID, relationship.
  2. Adjust any optional settings to match your page, business or campaign.
  3. Click the button to generate your result instantly — nothing is uploaded; the tool runs in your browser.
  4. Copy the result, or download it as a file where that option appears, and paste it into your site, document or campaign.

Frequently asked questions

Who needs an ads.txt?

Any site that sells advertising, including AdSense publishers. If you show no ads, you do not need one.

Where does the file go?

At the root of your domain: yoursite.com/ads.txt, as plain text.

What does DIRECT mean?

A direct relationship between you and the ad system. RESELLER means the account sells through an intermediary.

Related tools