Skip to publishing tools
    Free tool · Step 1

    AdMob: from test ads to real ads

    Every template ships with Google’s sample IDs so ads work while you test. Before release you swap in the IDs from your own AdMob account, publish an app-ads.txt file and tick a few switches. Paste your IDs below and this page tells you exactly what to change.

    Your answers are saved in this browser as you type

    Import from your AdMob account

    Optional read-only Google permission lists your apps and ad units. Only the IDs you select are saved to this project. Manual tools below work without signing in.

    Account import is not configured. The operator must enable AdMob API and configure a Google web client ID.

    Host your developer website and app-ads.txt

    A separate developer page publishes your app and studio name, support email, privacy link and AdMob publisher ID. Anonymous management uses a private manage token; it is never included in your project backup.

    Hosting is not configured. Download app-ads.txt below and host it on your own developer website.

    1What to change in your Unity project

    Replace Google’s sample App ID and ad unit IDs with the ones from your own AdMob account, in the place your template keeps them. Pick the template type so the steps below show the exact files.

    2Is my AdMob ID a test ID?

    Any ID with the publisher number 3940256099942544 is one of Google’s test IDs and must be replaced before release. Paste yours to check. In AdMob, add the app (choose “not published yet” if it isn’t on Google Play), then create one ad unit per format the game uses. IDs never leave your browser; they are checked right here.

    Android

    AdMob → Apps → App settings. Contains a ~ (tilde).

    Ad units → Banner. Contains a / (slash).

    Ad units → Interstitial.

    Ad units → Rewarded.

    Ad units → App open. Leave empty if you turn app open ads off.

    3Make these edits in Unity

    Enter a valid App ID and at least one ad unit ID above, with no red marks. Your exact edits appear here.

    4app-ads.txt: generate and check

    app-ads.txt is a text file on your own website that lists who may sell your app’s ads. Generate it below, upload it to the root of your domain, and check it live.

    AdMob reads app-ads.txt from the root of the website you enter as “Website” on your Google Play store listing: https://yourdomain.com/app-ads.txt. Only the domain counts, not the page; www. and m. are ignored, and AdMob looks at most one subdomain up.

    You don’t need to buy a domain. A free site whose address is its own (sub)domain works, for example Firebase Hosting’s your-project.web.app: put app-ads.txt at its root and use that address as the website in your Play listing. A page inside someone else’s site (example.com/yourstudio) only works if that site’s owner puts the file at their root or redirects to yours, because AdMob looks at the root of the domain (or one subdomain level up). AdMob may take a day or more to see a new file.

    How AdMob finds the file

    It takes the website from your store listing, drops www. or m., and looks for /app-ads.txt there and at most one subdomain level up. Redirects to another page or domain are followed. AdMob Help

    Generate the file

    AdMob → Settings → Account information, or paste any of your ad IDs.

    Enter a valid publisher ID (or a valid App ID in step 2) to generate the file.

    Check it

    5Why real AdMob ads don’t show after release

    Real ads usually stay blank for one of a few reasons, and most clear up once the app is linked and reviewed. Check these in order.

    • App not linked to its store listing. AdMob → Apps → App settings → Add app store details, once the app is live.
    • app-ads.txt missing or not verified. Check it with the app-ads.txt checker above.
    • Account or app still under review. New AdMob accounts and apps are reviewed before ads serve fully.
    • Limited ad serving on a new app. AdMob can limit ads on a new app while it assesses its traffic; the limit lifts on its own.
    • A test setting is still on. A test device, debug geography or a test ID left in a scene keeps showing test ads, or none.

    Choosing networks: ad networks for hypercasual games and Google’s AdMob mediation guide for Unity.

    6Release checklist

    0/12

    Ticks are saved in this browser. Sources: Google AdMob Help (app-ads.txt, Privacy & messaging) and Play Console Help (testing requirements, target API level), checked October 2026.

    Questions

    How do I know if I’m still using AdMob test IDs?

    Google’s sample IDs all use the publisher number 3940256099942544: the test App ID starts with ca-app-pub-3940256099942544~ and the test ad units with ca-app-pub-3940256099942544/. Search your Unity project for that number; if nothing is found, no test IDs are left. The ID checker on this page also flags them.

    Where do I put app-ads.txt?

    At the root of the website domain you enter as the developer website on your Google Play listing (and as the Marketing URL on the App Store), for example https://yourstudio.com/app-ads.txt. A file on any other page or domain is not read.

    How long until app-ads.txt is verified?

    AdMob crawls the file again over time after your app is linked to its store listing; Google does not give a fixed time. Check that the file is live with the app-ads.txt checker, then wait for AdMob to show it as verified.

    Why are my real ads not showing?

    Usually because the app is not yet linked to its store listing in AdMob, app-ads.txt is missing or not verified, the AdMob account or app is still under review, a new app is under limited ad serving, or a test device setting is still on. The section on this page lists each check.