I kept getting asked how INAPP-Mobile apps host their developer pages and where the app-ads.txt file actually lives for AdMob verification. The answer is boringly simple: a GitHub Pages repo at the root of the org, because Google requires the file at the domain root and Pages serves exactly that.
So I packaged it as a one-click deploy template. You fork, rename to <org>.github.io, drop in an index.html and an app-ads.txt, and the site is live on HTTPS with a custom domain if you want one. No build step, no CI config, no server to babysit.
The one concrete detail I baked in: app-ads.txt must be served with a text/plain content type and no redirects, and Pages does this correctly out of the box — but only if the file is committed with that exact lowercase name. One capital letter and the crawler silently fails verification. I added a tiny check script to the template that curls the live URL and compares the body, so a bad commit fails loudly instead of three days later during Play Console review.
What it costs the operator: essentially nothing in money, but you own the content. Pages has no backend, so anything dynamic — contact forms, analytics dashboards — has to be bolted on with client-side JS or a third-party service. For a static developer site plus ads verification, that trade is exactly right.
I put the whole thing at https://github.com/INAPP-Mobile/INAPP-Mobile.github.io — clone it, swap the placeholder text, and your app's public page and ads file are verifiable in minutes.
Top comments (1)
The detail that earns this post its place is the app-ads.txt one: it has to sit at the domain root, served as text/plain, with no redirects — and the failure mode is silent, AdMob just never verifies. I have seen developers burn days assuming their file was fine because it loaded in a browser, when a redirect or a wrong content type was quietly breaking the crawl.
The fork-and-rename-to-.github.io template is a nice touch too. Removing the build step and CI config is what makes this actually get done instead of sitting on a to-do list, and hosting the developer page the same way keeps the whole public surface in one place.
One question: when you moved to a custom domain, did the app-ads.txt verification keep working without any extra step, or did you have to re-verify with AdMob after the domain change? And do you keep the file in the same repo as the site, or a separate one?