Ads.txt Generator

Generate the AdSense ads.txt line for your root domain.

How it works

Ads.txt Generator creates the single line most AdSense publishers need to publish at the root of their domain. It reduces formatting mistakes that can delay verification or create warnings in the ad platform.

Steps

  1. Provide the input the tool requires and review the available settings.
  2. Adjust the settings so the result matches the format, size, or transformation you need.
  3. Start the job, wait for processing to finish, and then review or copy the result from the output panel.

When to use this tool

Use it when setting up AdSense on a new domain or confirming that the publisher line is formatted correctly.

Sponsored tool slot

Settings

Use only what you need. Optional fields are ignored when left empty.

pub-1234567890123456
DIRECT
f08c47fec0942fa0

Job status

No job started yet.

0% Waiting for a job.
No result yet.
Sponsored results slot

Helpful details

Frequently asked questions

The file should be publicly reachable from the root domain at /ads.txt.

DIRECT means you have a direct account relationship with the ad system named in the line.

A malformed publisher ID can cause an otherwise correct file to fail review or trigger warnings.