Dr Ads.txt — check & create

Two fast tools: check ads.txt or generate a clean file for AdSense.

Articles & guides

Short guides to help you fix ads.txt fast.
More articles

Frequently asked questions

Quick answers about ads.txt and app-ads.txt (AdSense-friendly).
Where should ads.txt be placed?

ads.txt must be accessible at the root of your domain: https://yourdomain.com/ads.txt (not in a subfolder).

What is the correct AdSense line?

A common AdSense entry looks like: google.com, pub-XXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0 (replace with your real pub ID).

DIRECT vs RESELLER — what should I use?

Use DIRECT when you work directly with the ad platform (e.g., your own AdSense account). Use RESELLER only if a partner network sells inventory on your behalf.

How long does it take for AdSense to recognize updates?

After updating ads.txt, it can take hours (sometimes longer) for crawlers to refresh. Re-check the file and consider purging CDN cache.

My ads.txt returns 403 or 404 — what can I do?

404 means the file isn't in the correct place. 403 means it's blocked by server rules/WAF/CDN. Make sure the file is public and not protected.

Do subdomains need a separate ads.txt?

If you serve ads on a subdomain, it should also have its own ads.txt at https://sub.yourdomain.com/ads.txt unless your setup intentionally consolidates inventory elsewhere.

What is app-ads.txt and where do I host it?

app-ads.txt is for mobile apps. It is hosted on your developer website domain at https://yourdomain.com/app-ads.txt and helps verify authorized sellers for app inventory.