Basics

app-ads.txt vs ads.txt: what differs and what does not

By Stoqlab team · Updated · 4 min read

app-ads.txt and ads.txt are the same file format published in two places. ads.txt sits on a website and covers that site's inventory; app-ads.txt sits on the developer website named in an app's store listing and covers the app's inventory. The app-ads.txt specification describes itself as an extension of ads.txt whose only differences are how the file is found and how subdomains are handled. That one difference causes most of the confusion.

Side by side

ads.txtapp-ads.txt
CoversInventory on a websiteInventory in apps distributed through app stores (mobile and CTV)
Lives at/ads.txt on the site that shows the ads/app-ads.txt on the developer website named in the store listing
How verifiers find itFrom the page's domain in the bid requestFrom the store URL in the bid request → store listing → developer website
Seller linesIdentical: domain, account ID, DIRECT or RESELLER, optional certification ID
SUBDOMAINSupportedUnused, ignored
Subdomain lookupThe file of the domain being soldOne subdomain level is tried first, then the parent domain; www. and m. are dropped
Other variablesCONTACT, OWNERDOMAIN, MANAGERDOMAIN, INVENTORYPARTNERDOMAIN in both

The separate file name is deliberate: app and web authorisations stay apart, so editing one cannot break the other.

When you need both files

If your company sells inventory on its website and in its apps, and the website is also the developer website in your store listings, you publish both files on the same domain: /ads.txt for the site, /app-ads.txt for the apps. Copying the same lines into both is common and harmless, as long as each file is complete for what it covers. What does not work is putting app sellers only in ads.txt, because app verifiers never open it.

Where mixing them up goes wrong

The most frequent case is a file on the marketing site while the store listing points somewhere else: an old domain, a parent company, a link-in-bio page. Verifiers follow the listing, so the file has to be on whatever domain the App Store or Google Play page names. If that is a social profile or a GitHub page, you cannot publish a root file there at all and need a domain you control.

The second is the www trap. For https://www.example.com in the listing, app verifiers request https://example.com/app-ads.txt, without the www. A file that only answers on www is invisible to them; serve it on the bare domain, or redirect the bare domain to it.

Last, INVENTORYPARTNERDOMAIN is followed to the partner's ads.txt, one hop, never to an app-ads.txt. Pointing it at a partner that only publishes app-ads.txt authorises nothing.

The app-ads.txt checker shows which host and file it ended up reading for a domain, which settles most of these in one run.