Toolvito

Works on this device

App Ads Txt Generator

Fill in one row for each ad system that may sell ads in your apps, and get the app-ads.txt file to put on your website. Every field is checked, so that each line keeps the record format. Copy the file or download it. Nothing is looked up or sent.

Enter your values

Your values

Such as the name of your app or company. It is written after #, so ad systems skip it.

An e-mail address or a web page for questions about the file. It is written as CONTACT=…

Records

Paste the text of a file you have, to change it here. Comments, empty lines and lines such as CONTACT= are skipped.

This is off unless you turn it on. Saved entries stay in this browser only. Untick the box to delete them.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Make the file.

How to use the app-ads.txt generator

  1. For each ad network or exchange you work with, add a row: the Ad system domain, your Publisher account ID, the Relationship and, if the network gives one, the Certification authority ID.
  2. Copy the values exactly from each network. Most networks, such as AdMob, show the whole line for your account in their app-ads.txt help or settings: put its parts into one row.
  3. Add a comment and a contact if you want them. The file is written while you type.
  4. Download app-ads.txt and put it at the top of the developer website that your app's store listing names, such as https://www.example.com/app-ads.txt.
  5. To change a file you already have, paste its text under Paste an app-ads.txt file and choose Read into the records.

The format of a record

app-ads.txt uses the record format of the IAB Tech Lab ads.txt specification. Each record is one line with three or four fields, separated by commas. A line that starts with # is a comment, and CONTACT= names a contact.

The fields of one record
Field What it holds Example
1. Ad system domain The domain of the advertising system that sells the ads adnetwork.example
2. Publisher account ID Your account in that system pub-0000000000000001
3. Relationship DIRECT when you control the account; RESELLER when another company sells your ad space through it DIRECT
4. Certification authority ID (optional) The ID of the advertising system at a certification authority, when the system gives one a1b2c3d4e5f6a7b8

What is checked

  • The domain must be a domain only: no https://, no path, no spaces, and parts of letters, digits and hyphens. It is written in small letters.
  • An account ID or a certification authority ID must have no spaces, commas or #, because those would break the line.
  • The checks also list a record that is in the file twice, an account that is both DIRECT and RESELLER, and two different certification authority IDs for one ad system.

Worked example

The three example rows give this file of three lines: adnetwork.example, pub-0000000000000001, DIRECT, a1b2c3d4e5f6a7b8, then exchange.example, 12345, RESELLER and exchange.example, 67890, DIRECT. That is 3 records for 2 ad systems, 2 DIRECT and 1 RESELLER, with no checks. The domains and IDs are made up; use your own.

Limits you should know

  • No list of ad systems, account IDs or certification IDs is built in. The tool cannot see whether a value is right, so copy each one from the ad network.
  • The tool does not read the file on your website. To check a file that is online, use the App Ads Txt Validator.
  • Other variables of the specification, such as OWNERDOMAIN, are not written here; add them by hand if you need them.
  • At most 1,000 records.

Related tools