How AdMob finds the file
AdMob does not look at your app. It starts from the developer website named in your app's store listing and then reads app-ads.txt at the root of that website, for example https://developer.example/app-ads.txt. If the listing names no website, or a different one than the site that holds the file, AdMob finds nothing.
1. Check the website in your store listing
- The listing must show a developer website, and it must be your own domain.
- That website must be the one that serves the file. A file on a different domain is never read.
- On Android, this is the website in your Google Play developer details. On iOS, it is the website URL in your App Store listing. AdMob's own help says which iOS field it reads, so check it there.
Type the app's bundle ID or App Store ID into the ads.txt & app-ads.txt Checker. It shows the developer website found from the listing and whether an app-ads.txt exists there.
2. Check the address of the file
- Open https://yourdomain/app-ads.txt in a browser. It must show plain text, not a web page.
- The file must sit at the root of the domain, not in a folder.
- Website builders sometimes serve an HTML page for any unknown address. That is a soft 404 and counts as no file.
3. Check subdomains and redirects
- AdMob reads the file at the root of the developer website. A listing that points to a subdomain, such as games.example.com, may not be supported. Point the listing at the main domain.
- If the address redirects, make sure it ends at a plain text file on the same site. A long chain of redirects, or one that leaves the domain, can stop the crawler.
4. Check robots.txt
If your robots.txt blocks the path of app-ads.txt, or blocks crawlers in general, AdMob's crawler will not fetch it. Open https://yourdomain/robots.txt and make sure it does not disallow /app-ads.txt.
5. Check the lines and give it time
- Copy the lines AdMob gives you exactly, including your publisher ID, one per line.
- After a fix, AdMob can take up to a day or more to crawl again. AdMob's app-ads.txt page has a Check for updates option to ask for a new crawl.
- If the file opens correctly and the checks above pass, but AdMob still shows an error after several days, contact AdMob support with the exact URL and the message.
The same problems apply to other ad networks
Other networks read the same file in the same way, so these checks also help with Unity, AppLovin and Meta Audience Network. For what the file should contain, read What is app-ads.txt?.