app-ads.txt is a standard from IAB Tech Lab. It publicly declares who is authorised to sell the ad space in your app. Ad buyers read the file, and they may decline inventory from a seller that is not on the list.
Where the file lives
It has to sit at the root of the domain you entered as the developer website in your store listing: https://yourdomain.com/app-ads.txt. Ad networks read the address from your store page and look for the file there.
What a line looks like
Each line has four comma-separated fields: the ad system's domain, your publisher ID in that system, the relationship type (DIRECT or RESELLER) and an optional certification ID.
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
If you use mediation, the lines each added network gives you belong in the file too.
The mistakes we see most
- The developer website field in the store listing is empty.
- The file is in a subfolder instead of the root.
- The address redirects to a login page or to another domain.
- The server returns an HTML page instead of plain text.
- There is a typo in the publisher ID.
- A new ad network was added but its lines never made it into the file.
- The website was rebuilt and the file was not carried over to the new server.
How to check
Open the address in a browser; you should see your lines as plain text. Then look at the app-ads.txt status screen in your ad network's console. Networks take time to crawl the file again, so a fix can take up to a day to show there.
The file itself is simple; the work is keeping it current. That is why we treat every new network and every site migration as a change to this file as well.