3 Tiny Repos Behind an App Listing: Privacy Policy, app-ads.txt and the Root URL Trap
Short answer

App Store Connect needs a Privacy Policy URL and a Support URL, and AdMob needs an app-ads.txt file at the root of your developer website. Three small repos show what goes wrong: a generic policy that names no app and no third party, a newer policy written for Android, and an app-ads.txt that only works because a copy sits at the root of the GitHub Pages user site. Keep every app's public pages in one user site, name every SDK in the policy, link it inside the app, and check the URLs before each release.

App Store Connect asks for a Privacy Policy URL and a Support URL before it will submit anything, and AdMob wants one more file on a website you control. Three of the smallest public repos on my GitHub exist because of those fields. None of them holds an app, and two of them hold almost nothing, but a mistake in any of them can stop a release or leave AdMob unable to verify your app.

This post walks through what each repo really contains: privacy-policy, app-ads.txt and jerrypm.github.io. One of them is a useful bad example. Another shows a URL trap that catches anyone hosting on GitHub Pages. If an AI tool built your app, this is also the layer it probably skipped, because none of it lives in your Xcode project.

RepoWhat's insideJob
privacy-policyOne Markdown policy in Indonesian and one PNGAn old, generic policy
app-ads.txtA one-line app-ads.txt, plus a folder with a policy pageA copy of the ad file; it serves nothing on the live site
jerrypm.github.ioA browser game at the root, the same app-ads.txt, and an app folder with a policy pageThe user site that answers the crawler and the reviewer

Repo 1: privacy-policy, a policy with no app in it

The privacy-policy repo was last touched in October 2023. Its privacy-policy.md has six short sections in Indonesian covering what is collected, how it is used, security, links to other sites, changes, and contact. It talks about visitors to "situs web kami", our website, and mentions an app only once, in a sentence saying collection happens in a Google Form outside the app.

It's a useful example of what a generic policy looks like next to Apple's rule. Guideline 5.1.1(i) says every app needs a policy link in the App Store Connect metadata field and inside the app, and the policy must do three specific things:

  • Identify what data the app or service collects, how it collects it, and all uses of that data.
  • Confirm that any third party receiving user data, including analytics tools, ad networks and SDKs, will provide the same or equal protection.
  • Explain retention and deletion, and describe how a user can revoke consent or request deletion.

Read against that list, the old file falls short in plain ways. It never names an app. It names no third party. It has no retention period and no deletion route. Its date is missing, so a reader can't tell which version of the product it describes. The contact section also has a link written as [kontak kami](#), which goes nowhere, although an email address sits beside it.

The hosting has a problem too. GitHub renders the Markdown file on github.com, but the repo has no published site, so the only URL to give a store is the repo's file view. That page works for a reader, and it comes with all of GitHub's interface around it. A rename of the repo or the branch breaks the link, and nothing tells you.

Repo 2: the newer policy page in an app folder

The contrast sits in jerrypm.github.io, in the folder uparrow. The file uparrow/privacy-policy.html is a real page for a real app, and you can read it at jerrypm.github.io/uparrow/privacy-policy.html. It's dated October 30, 2026 and describes UpArrow as a free game with ads and optional in-app purchases.

The page names Google AdMob and Google Play Billing. It lists what AdMob may collect: device information, the advertising ID, IP address, and usage and ad interaction data. It says game progress stays on the device in Android DataStore, is not sent to a server, and can be removed through a reset option, by clearing app data, or by uninstalling. Consent is covered too, with a named setting for changing ad choices later.

Apple asks forOld privacy-policy.mdUpArrow page
What is collected and howOnly "information you provide"Named data types, split between the app and AdMob
Third partiesNone namedAdMob and Play Billing named
Same or equal protectionMissingMissing; the page says data follows Google's policy
Retention and deletionMissingCovered for local game data, not for AdMob data
Revoking consentMissingYes, through a named setting
Date and app nameNeitherBoth

So the newer page is much better and still wouldn't be ready to copy into an iOS submission. It was written for Android, so Google Play Billing and DataStore would both be wrong on iOS. The line "We do not have access to or control over this data" sits awkwardly next to Apple's wording about third parties providing equal protection. If you port an app like this, those are the sentences to rewrite first, and they need to describe the build you're submitting.

Ads on iOS add a question Android doesn't ask in the same way. Guideline 5.1.2(i) says you must get explicit permission through the App Tracking Transparency APIs to track a user's activity. Apple's App Privacy Details page also counts placing a third-party SDK that combines your app's user data with data from other developers' apps, even if you don't use the SDK for that purpose. Your policy, your App Privacy answers and your runtime behavior all have to tell the same story. Guideline 2.3 asks for accurate privacy information in your metadata as well. Apple's January 12 Age Rating Deadline: How to Answer the Two New Questions covers another App Store Connect form that needs the same care.

Google Play's rules overlap but differ in the details. The User Data policy wants an active, publicly accessible, non-geofenced URL, rules out PDFs, and asks for a privacy contact and retention and deletion practices. It also says apps that don't touch personal data still need a policy. A plain HTML page on a public URL satisfies the format half of both stores.

Repo 3: app-ads.txt, one line and a root URL

The file itself is 59 bytes:

google.com, pub-4821489157718538, DIRECT, f08c47fec0942fa0

That's the ad system, the publisher account ID, and the relationship. The fourth value is the optional certification authority ID from the ads.txt format. The publisher ID isn't a secret, since the whole point of the file is to be read by anyone buying ads. Google's app-ads.txt guide describes it as an IAB initiative that lists who may sell your inventory, and says using it is optional but recommended.

Google's setup article says to upload it to the root directory of your developer website, and the crawler checks https://<hostname>/app-ads.txt. It takes the hostname from your store listing: the Marketing URL on the App Store, or the website in your contact details on Google Play. Your listing doesn't need the full file URL, only a site on the right host.

GitHub Pages makes the root harder to reach than it looks. GitHub's docs describe two kinds of site. A user site must live in a repo named <owner>.github.io and serves from the root of that host. A project site can have any repo name and serves from <owner>.github.io/<repositoryname>. So a dedicated repo called app-ads.txt looks tidy and can never put a file at the host root, even with Pages on. The file would land one folder down, where no crawler looks.

I checked the live paths on November 5, 2026:

URL path on jerrypm.github.ioStatusServed from
/app-ads.txt200, text/plain, 59 bytesThe user site root
/app-ads.txt/404Nothing
/app-ads.txt/app-ads.txt404Nothing
/uparrow/privacy-policy.html200, text/htmlA folder in the user site

The repo named app-ads.txt isn't doing the work today. The copy in the jerrypm.github.io root is, and the two files are byte-for-byte identical. The app folder and its policy page are duplicated across both repos as well. That duplication is the weak spot of this setup, because editing one copy leaves the other stale, and only one of them is live. I'd keep a single source.

A plain github.io hostname works here for a reason worth knowing. The IAB spec tells verifiers to reduce a host to the name before the public suffix plus one level, and to handle public suffixes properly. github.io is on the Public Suffix List, so you.github.io stands on its own the way example.com does. On your own domain, the spec strips a leading www. or m., and Google says redirects are allowed if the file has to live elsewhere.

When AdMob complains, its troubleshooting article maps cleanly to a short list of checks:

AdMob messageCheck this first
File isn't foundIs it at the host root? Has the app been registered with a store? Crawling can take up to 24 hours.
Developer website missing from the listingMarketing URL on the App Store, website on Google Play
Hosted on an unsupported subdomainHost or redirect the file at the URL AdMob expects
Not formatted correctlyPublisher ID typos, or a wrong domain in the line
Robots.txt preventing the crawlerRemove the rule blocking the file
Status not showingThe app has made no ad request in the last seven days

Build all three in one repo

Here's the layout I'd use for a new app, with one user site holding every app's public pages. GitHub allows one user site per account, so folders are how you fit several apps.

you.github.io/
├── index.html            # who you are, links to each app
├── app-ads.txt           # must stay at the root
└── myapp/
    ├── index.html        # support page with real contact details
    └── privacy.html      # the policy for this app
  1. Create a public repo named exactly you.github.io, with your own username. GitHub Free needs the repo to be public for Pages to work.
  2. Add the files above. Copy the app-ads.txt line from your AdMob account so you don't retype the IDs.
  3. In the repo's Settings, under Pages, publish from your default branch and the root folder.
  4. Open each URL in a private browser window. If you see a 404, wait a few minutes for the first deployment.
  5. In App Store Connect, put the policy URL in App Privacy and the support page in Support URL. Add the Marketing URL too, even though Apple marks it optional, because AdMob reads the hostname from it.
  6. Link the policy inside the app, then run the check below.

Apple's version properties reference says the Support URL must lead to actual contact information, and Guideline 1.5 repeats that people need an easy way to reach you. A page with a real email address passes that test. A link written as #, like the one in my old file, doesn't. Outlook.com Is Bouncing Mail From Domains With No DMARC Record is worth reading if that support address sends mail from your own domain.

The App Privacy reference lists the Privacy Policy URL as required for all apps, so a free app with no ads and no accounts still needs one. There's also an optional User Privacy Choices URL, for a page where users can access their data or request deletion.

The in-app link

Guideline 5.1.1(i) wants the policy inside the app "in an easily accessible manner". A row in Settings is enough for most apps, and it takes a few lines of SwiftUI:

import SwiftUI

struct LegalSection: View {
    private let policy = URL(string: "https://you.github.io/myapp/privacy.html")!
    private let support = URL(string: "https://you.github.io/myapp/")!

    var body: some View {
        Section("About") {
            Link("Privacy Policy", destination: policy)
            Link("Support", destination: support)
        }
    }
}

If your app has a sign-in screen, put the policy link there as well, so a reviewer finds it without creating an account. Should the app support account creation, Guideline 5.1.1(v) also requires account deletion inside the app, and the policy should describe that path.

A check you can run before every release

This script tests the two URLs a store or crawler will hit. I ran it against a local server with a good layout, then with a wrong path, and it failed the second one as it should.

#!/usr/bin/env bash
# Usage: ./check-store-urls.sh https://you.github.io https://you.github.io/myapp/privacy.html
host="${1%/}"
policy="$2"
fail=0

code=$(curl -s -o /tmp/app-ads.check -w '%{http_code} %{content_type}' "$host/app-ads.txt")
echo "app-ads.txt: $code"
case "$code" in
  200\ text/plain*) ;;
  *) echo "  FAIL: expected 200 and text/plain at the root"; fail=1 ;;
esac

if ! grep -Eq '^google\.com, *pub-[0-9]{16}, *(DIRECT|RESELLER)' /tmp/app-ads.check; then
  echo "  FAIL: no valid AdMob line found"; fail=1
fi

code=$(curl -s -L -o /tmp/policy.check -w '%{http_code}' "$policy")
echo "privacy policy: $code"
[ "$code" = "200" ] || { echo "  FAIL: policy URL is not 200"; fail=1; }
grep -qi 'privacy' /tmp/policy.check || { echo "  FAIL: page never says privacy"; fail=1; }
grep -Eqi 'last updated|effective' /tmp/policy.check || echo "  WARN: no date on the policy"

exit $fail

The output for a good setup is two lines, and the exit code is 0, so you can run it in CI. It only checks that the files are reachable and shaped right. It can't tell you whether the policy is true.

Running the URL check against local layouts

The check script was run again on a Mac with the system bash, against small local web servers set up to imitate the layouts above, with a made-up publisher ID. These are the results:

LayoutWhat the script printedExit code
app-ads.txt at the root, policy with a date200 text/plain, policy 2000
app-ads.txt only inside the app folder404, then both FAIL lines1
Policy page with no date on itBoth 200, then "WARN: no date on the policy"0
Root answers with a 301 redirect to the real file301, then both FAIL lines1
app-ads.txt saved with a byte-order mark at the start200 text/plain, then "no valid AdMob line found"1

The first three rows are the behavior described above. The last two are worth knowing about:

  • Redirects count as failures. The app-ads.txt request does not follow redirects, so a host that sends /app-ads.txt somewhere else, for example after you add a custom domain to GitHub Pages, fails the check even if the file exists at the other end. If your host redirects, run the script against the final hostname, which is also the one your store listing should name.
  • An invisible character can break the line. Some Windows editors put a byte-order mark at the start of a UTF-8 file. The line then no longer starts with google.com as far as the pattern is concerned. The AdMob pages above don't say whether its crawler tolerates one, so save the file as plain UTF-8 without it.

The LegalSection view type-checked against the iOS 17 Simulator SDK in the Swift 5 and Swift 6 language modes with no warnings. And the dependency search in the next section, run on a sample app that adds only Apple's swift-algorithms package, listed two identities, swift-algorithms and swift-numerics. The second one came in as a dependency of the first, which is exactly why the policy check should start from Package.resolved rather than from the packages you remember adding.

Compare the policy with the app an agent built

That last point is where apps built with Cursor, Claude Code, Rork or Bolt need the most care. An agent can draft a clean policy in seconds, but it writes what you described, and SDKs often arrive later in the session. Generate the list from the project instead of from memory.

# Swift packages the app really resolves
grep '"identity"' \
  MyApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

# CocoaPods projects
sed -n '/^PODS:/,/^DEPENDENCIES:/p' Podfile.lock

# Expo and React Native projects
grep -E 'firebase|sentry|posthog|amplitude|mixpanel|admob|revenuecat|appsflyer' package.json

# Does the app ask to track?
grep -rn "NSUserTrackingUsageDescription" --include=Info.plist --include=app.json .

Put each SDK on a list with three columns: what it collects, why, and which sentence of the policy mentions it. Any SDK without a sentence means the policy is wrong. Any sentence without an SDK means it was copied from somewhere. Then open your App Privacy answers in App Store Connect and compare. Apple says you're responsible for keeping them accurate, that they must include third-party partners, and that you can update them at any time without shipping a new build.

AI features need the same treatment. If your app sends personal data to an outside AI service, Guideline 5.1.2(i) says you must clearly disclose sharing with third-party AI and get explicit permission first. A policy written before you added that feature won't cover it. Add a sentence that names the provider, and add the permission step in the app.

What breaks later

These pages fail months after launch, when nobody is looking at them. Renaming your GitHub account changes every URL on the host, and your store metadata keeps pointing at the old one. GitHub Free only offers Pages from public repos, so making the repo private puts the site outside the plan. A theme change on the site can push app-ads.txt out of the root if a build step only copies certain files, which is why the script above belongs in your release routine.

Limits are worth a quick look too. GitHub says Pages isn't meant as free hosting to run an online business, and it shouldn't handle sensitive transactions. Static legal pages for an app are far from a checkout, but a paid app with a real brand deserves its own domain anyway. It keeps your URLs stable if you ever leave GitHub, and the store sees your name instead of a username. My own user site has a different weakness: the root is a browser game with an ad script, so anyone who opens the host root lands on the game. For a single-app developer I'd put a plain page about the app there.

When a policy changes, update the date on the page. If the app's data practices changed, update the App Privacy answers in the same sitting.

Checklist before you press Submit

  • The policy names the app, the date, and every SDK that receives user data.
  • It covers collection, uses, third parties, retention, deletion, and how to revoke consent.
  • The policy opens from the store listing and from inside the app without signing in.
  • The Support URL shows a working way to contact you.
  • If you run ads, app-ads.txt returns 200 as text/plain at the host root.
  • The Marketing URL or Play website uses that same host.
  • App Privacy answers match the SDK list.
  • Any tracking goes through App Tracking Transparency.
  • Nothing in the policy came from another platform's version of the app.

This is engineering guidance, not legal advice. If you handle health, children's or financial data, have a lawyer read the policy.

If you use Claude Code on a native iOS project, my Gumroad kit Claude Code + Xcode: The Production iOS Workflow Kit fits this kind of pre-release work. It's a paid product of mine with AGENTS.md and CLAUDE.md templates, a privacy and security rule, a /ios-release command and a release readiness agent. It won't write your policy or guarantee App Store approval, and the store fields stay your job.

Sources