Publishers

Common app-ads.txt errors and how to fix them

By Stoqlab team · Updated · 7 min read

An app-ads.txt error is anything that stops a verifier from reading the file where it expects it, or that makes a line fail against the network's sellers.json. The first kind costs every partner at once; the second costs one path at a time. Below are the cases our crawler meets most, in the order a verifier hits them, with the fix for each. The rules come from the app-ads.txt and ads.txt 1.1 specifications; the examples use reserved .example domains.

The file is not found

Usually it exists, just not where verifiers look. They derive the location from the developer website in the store listing, drop www. and m., and try at most one subdomain before the parent domain, so for https://www.studio.example/ the file has to answer at https://studio.example/app-ads.txt. Serve it there or redirect that URL to it within the same domain.

If the listing itself points somewhere else (an old domain, a parent company, a store page, a social profile), update it in every store and keep the old file up for about 30 days while crawlers catch up. Redirects inside your root domain are fine; one redirect to another domain is allowed, a second one is an error.

Two server habits hide a file that is there. Sites that answer every unknown path with their home page send HTML with a 200, which crawlers read as "no app-ads.txt". Firewalls and bot challenges that block non-browser clients hide the file from every verifier at once. Make /app-ads.txt answer a plain GET, without JavaScript or cookies.

The file is not plain text

ads.txt treats any content type other than text/plain as an error, so serve Content-Type: text/plain; charset=utf-8. Files pasted from a word processor carry smart quotes, non-breaking spaces, a byte-order mark or zero-width characters that break the first field of a line. Edit in a plain-text editor and check the bytes when a line that looks right fails.

Lines that do not parse

  • A relationship other than DIRECT or RESELLER (DIRCT, RESSELLER).
  • Fewer than three fields, or a URL or spaces in the domain field (https://ssp.example).
  • Several records on one line, or one record split across two.
  • Variables written with a colon (OWNERDOMAIN: example.com) instead of =.

Parsers skip such lines entirely, whatever they say. Fix them before anything else.

The account ID is not in sellers.json

The most common line-level problem by far: the network's sellers.json does not list the account in field #2. The account was closed or renumbered, a partner's old template was copied in, a prefix is missing or extra (pub- vs ca-pub- for Google), or the line names the wrong network domain. Buyers drop these paths. Ask the network for your current ID, or delete the line if you no longer work with them; a line nobody uses still authorises an account you do not control.

The relationship contradicts sellers.json

DIRECT on an account the network lists as INTERMEDIARY is usually a reseller's line labelled DIRECT: make it RESELLER, or ask the network to correct its listing if the account is yours. RESELLER on a PUBLISHER account is usually your own account mislabelled: make it DIRECT. DIRECT vs RESELLER has the details.

Worth a look, but not errors

What you seeWhat to do
The network has no readable sellers.jsonNobody can check those lines. Ask the network.
Confidential sellerFine for your own confidential account; question it for a reseller you do not know.
Seller type BOTHThe relationship cannot be confirmed from sellers.json alone.
No google.com line on an AdMob appAdMob limits serving for apps it cannot verify. Add google.com, pub-…, DIRECT, f08c47fec0942fa0 with your own publisher ID.
Hundreds of stale reseller linesNot invalid, but each one is another way to sell your inventory. Review the list with each partner now and then.

The app-ads.txt checker runs all of these on any domain. Its statuses are defined on the methodology page, and each network's page in the network directory shows the mistakes publishers make most with its lines.