ads.txt Guide for AdSense: Authorized Sellers, DIRECT Records, and Checks

Learn what ads.txt does, how Google AdSense publisher records are structured, and how to check the file before review.

8 min read
  • #adsense
  • #ads.txt
  • #monetization
  • #seo
Illustration for “ads.txt Guide for AdSense: Authorized Sellers, DIRECT Records, and Checks”

ads.txt helps verify authorized sellers

ads.txt is a public text file placed at the root of a domain. It lists the advertising systems and seller accounts that are authorized to sell ads for that website.

For publishers, the file is a simple but important trust signal. It helps ad platforms and buyers reduce inventory spoofing and confirm that a seller account is connected to the domain.

The common AdSense record format

A typical Google AdSense record includes the advertising system domain, the publisher ID, the relationship type, and Google's certification authority ID.

The publisher ID should come from the AdSense account. The relationship is usually DIRECT when the site owner controls the account directly.

  • google.com is the advertising system domain
  • pub-0000000000000000 is replaced by the real publisher ID
  • DIRECT indicates a direct account relationship
  • f08c47fec0942fa0 is Google's certification authority ID

Publish the file at the domain root

The file should be available at a root URL such as https://example.com/ads.txt. It should return plain text, not an HTML page, redirect loop, blocked route, or login screen.

After deployment, open the file directly in a browser and confirm that the expected line appears exactly once and uses the correct publisher ID.

ads.txt does not replace site quality

A correct ads.txt file can help ad verification, but it does not guarantee AdSense approval. The site still needs useful content, clear navigation, policy pages, contact information, privacy disclosures, and a clean user experience.

For a utility site, that means the tools should work, supporting pages should be original and helpful, and ads should not overwhelm the primary task.

Where tempboxs fits

The tempboxs ads.txt Generator & Checker creates a Google AdSense line and reviews pasted records locally in your browser. It does not upload publisher IDs or seller records.

Use it with the Robots.txt Tester, Meta Tag Analyzer, Schema Markup Generator, Open Graph Preview Generator, and llms.txt Generator when preparing a site for monetization review.

Put the guide into practice with browser-only utilities that keep pasted values on your device.