app-ads.txt validator
Enter the developer website from your app's store listing, or paste your app-ads.txt,
to check it against the IAB spec and every ad system's sellers.json.
Checking a website instead? Use the ads.txt validator.
Pasted files are validated in your browser and never uploaded; only live fetches go through our server.
Your SSP or ad network asked you to add these lines to your app-ads.txt. Paste them here to see whether each one is in your file exactly as sent, and whether the partner’s own sellers.json lists each account ID. If a line is missing or mistyped, or the ID isn’t listed, buyers can’t verify that partner, so it can’t sell your inventory.
Where app-ads.txt must live
app-ads.txt belongs on the developer website, not inside the app. Upload it to the root directory of that site, so that it answers at example.com/app-ads.txt. The root is the path directly after the domain name, so a copy placed in a folder, such as example.com/apps/app-ads.txt, is not where an ad system will look.
The developer website is the URL you enter in the store listing. On Google Play it goes in the contact information of the listing. On the Apple App Store it goes in the marketing URL field. Whatever domain you enter there is the domain that has to host the file.
How ad systems find your file
Ad systems never ask you for the location of the file. AdMob reads the developer website from the store listing and uses the hostname of that URL. It then requests /app-ads.txt from that host, and the IAB specification tells crawlers to try HTTPS first.
The crawler also handles subdomains in a fixed way. It ignores a leading www. or m., so a listing that points to www.example.com is read as example.com. It probes up to one subdomain level, and if a subdomain such as games.example.com has its own file, that file is used and the parent domain's file is only the fallback. Separate subdomains are the only way to give different apps different lists of authorized sellers, because the standard has no way to mark a seller as valid for only some apps within one file.
Why verification fails
Verification usually fails for one of these reasons.
- The developer website in the store listing is a different domain from the one that hosts the file, or the listing has no website at all.
- The file does not contain a correctly formatted line for your publisher ID. For AdMob that is a
google.comline with yourpub-ID, the relationshipDIRECTand the certification authority IDf08c47fec0942fa0. - The file has formatting errors, such as a missing field or a mistyped relationship. Run it through the validator above to see each one by line.
- The server returns an HTML page, such as a homepage or an error page, instead of the plain-text file.
- The crawler has not looked at the file since your last change. AdMob can take up to 24 hours to crawl and verify the file, and the app-ads.txt section of the AdMob account has a "Check for updates" button to request a crawl.
A redirect is not a failure by itself, because AdMob accepts a server that redirects the crawler to a file hosted elsewhere. When you fetch a domain with this tool, the tool shows the URL it actually fetched, the HTTP status and content type, and how many redirects it followed.
The SUBDOMAIN variable deserves a note. Unlike ads.txt, app-ads.txt does not use it, and crawlers ignore it if they find it. The validator reports it as a notice in this mode.
Frequently asked questions
Where does app-ads.txt need to be hosted?
At the root of the developer website listed in your app's store listing, for example example.com/app-ads.txt. Ad systems read the developer website from the Google Play or App Store listing and look for the file there.
Why does AdMob say my app-ads.txt details don't match?
Check 3 things: the developer website in the store listing is the domain that hosts the file, the file has a line with your AdMob publisher ID (google.com, pub-…, DIRECT, f08c47fec0942fa0), and AdMob has crawled the file since your last change.
Is app-ads.txt different from ads.txt?
The record format is the same. The differences are where the file lives and how it is found: the domain comes from the developer website in the store listing instead of your own site, the crawler checks up to one subdomain level and skips www. and m., and the SUBDOMAIN variable is unused.
Does this tool read my app store listing?
No. Enter the developer website domain from your store listing and the tool fetches app-ads.txt from that domain.