← Blog NEWOnline Business Nov 30, 2026 · 7 min read

How to Add AdMob to Your App Without Breaking the Policies

Add AdMob safely: account setup, test ads, app-ads.txt, user consent, and ad placements that stay within Google's policies.

How to Add AdMob to Your App Without Breaking the Policies

Adding ads to an app looks like a matter of a few lines of code. Yet many new developers end up with ad serving limits, or even a disabled account, because of mistakes that are easy to avoid: clicking real ads while testing, full-screen ads that pop up the moment the app opens, or banners stuck right next to buttons. In this article I explain how to add AdMob to an app from start to release, with a focus on what keeps your account safe.

AdMob and Google Play policies can change, so treat this guide as accurate as of late 2026 and always check the official pages in the Sources section.

The overall flow

  1. Create an AdMob account in your name (free). The account owner fills in their own identity and payment details.
  2. Add the app in AdMob, then link it to its app store listing once it is published.
  3. Create an ad unit for each placement.
  4. Add the Google Mobile Ads SDK and your App ID to the app.
  5. Test with test ads, not real ones.
  6. Add an app-ads.txt file to your developer website.
  7. Set up a user consent message.
  8. Update the declarations in Play Console or App Store Connect.
  9. Release, then wait for AdMob's app readiness review.

Choose the right ad formats

  • Banner: a small strip at the top or bottom of the screen. The least intrusive, as long as it does not sit against buttons.
  • Interstitial: a full-screen ad at natural breaks, such as after finishing a level or an article.
  • Rewarded: users choose to watch an ad for a reward, like coins or a temporary feature. It must be optional, with a clear reward.
  • Native: ads styled to fit your app's design, but still clearly labeled as ads.
  • App open: shown when the app is opened or brought back. For that moment, Google recommends this format rather than an interstitial.

Start with one or two formats. More ads do not automatically mean more revenue, especially if users get annoyed and uninstall.

Always use test ads during development

This is rule number one. During development, never show or click real ads in your own app, because those clicks can count as invalid traffic. Use one of these:

  • Demo ad unit IDs from Google's documentation, which always serve test ads.
  • Register your phone as a test device, so the ads you see are labeled as test ads.

Keep debug and release configurations separate. Real ad unit IDs belong only in the release build. Before uploading, double-check that the release build uses the real IDs, because demo IDs that slip into production mean no revenue.

Placements that often break the policies

  • Ads too close to buttons or frequently tapped areas, which leads to accidental clicks.
  • Interstitials when the app opens or exits. AdMob policy specifically prohibits this.
  • Repeated interstitials after every user action, such as every tap or swipe.
  • Ads that cover content or block navigation.
  • Ads on screens with no content, such as loading or empty screens.
  • Encouraging users to click ads, for example "click an ad to support us".
  • Native ads without a label that sets them apart from content.
  • More ads than content on a single screen.

The simple rule: ads can be visible, but they must never trick people.

Add app-ads.txt

The app-ads.txt file helps ad buyers confirm that the ad inventory in your app is really sold by you. To set it up:

  1. Make sure your Play Store or App Store listing includes a developer website.
  2. Copy the app-ads.txt line from your AdMob account, which contains your publisher ID.
  3. Upload it as app-ads.txt at the root of that website's domain, for example yourdomain.com/app-ads.txt.
  4. Wait for AdMob to crawl and verify it. This can take a few days.
  • A consent message for European users. If your app is used in the European Economic Area, the UK or Switzerland, use the User Messaging Platform (UMP) SDK and set up the message under privacy and messaging in AdMob.
  • iOS: if you use cross-app tracking, show the App Tracking Transparency prompt.
  • A privacy policy that says the app shows ads through AdMob and what data is collected for that.

Update your app store declarations

Ads change how your app collects data, so the app store forms need updating too:

  • Play Console: declare that the app contains ads, complete the advertising ID declaration, and update the Data safety form for the data the ads SDK collects. The full publishing steps are in how to publish an app on Google Play in 2026.
  • App Store Connect: update the app's privacy labels.
  • Apps for children: the rules are much stricter. You must use ad SDKs certified for the Families program and tag ad requests as child-directed. If in doubt, get advice before adding ads.

Wait for the app readiness review

New apps in AdMob have to be reviewed and approved before they can fully serve ads. Link the app to its store listing as soon as it is published. During the review, ads may serve in a limited way or not at all. That is normal.

Consider in-app purchases alongside ads

Ads are not the only way to monetize an app. Many apps combine ads with a "remove ads" purchase or a premium subscription. Users who dislike ads get a choice, and you get a second revenue stream. The integration is covered on the in-app purchase integration page.

FAQ

Can I click my own ad once just to check it works?

No. A click from the app owner on a real ad counts as invalid traffic. To check, use test ads or register your device as a test device.

Why are no ads showing after the app is released?

Common causes: the app is still in the readiness review, app-ads.txt is not verified yet, the app is not linked to its store listing, or demo IDs ended up in the release build. Check the app's status in the AdMob dashboard.

How much can I earn from AdMob?

There is no way to say in advance. Revenue depends on active users, where they are, the ad formats and advertiser demand. Be wary of anyone who promises a specific number.

Final thoughts

Adding AdMob safely is actually simple: use test ads during development, put ads at natural breaks, set up app-ads.txt, prepare user consent and update every app store declaration. A healthy account is worth far more than a few days of revenue from aggressive placements.

If you would like the setup done properly from the start, there is an AdMob setup service with a Setup package at IDR 750,000. Its page lists what is included and what to prepare, including access to the source code and to the developer website for app-ads.txt.

Sources

Read next