Ads.txt generator

ads.txt and app-ads.txt use exactly the same line format. This generator writes either one — correctly formatted and complete.

Open the free app-ads.txt generator

ads.txt or app-ads.txt — which one do you need?

The line format

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
example-ssp.com, 12345, RESELLER

Every line has the ad system’s domain, your account ID in that system, the relationship (DIRECT — you own the account, RESELLER — a partner sells on your behalf) and, optionally, the certification authority ID (TAG-ID) of the ad system. Lines starting with # are comments.

Why use a generator

For apps, the generated file can also be hosted for free with a permanent link.

FAQ

Is ads.txt the same as app-ads.txt?

The format is identical (IAB Tech Lab). The difference is where the file lives and what it protects: ads.txt sits on the website that shows ads, app-ads.txt on the developer website of the apps.

Can I use the same lines for ads.txt and app-ads.txt?

Often yes, but check with each network: some use different account IDs or partner lists for web and for apps.

Related guides

All app-ads.txt guides

More