How to Add AdMob Ads to Your Android App and Start Earning in 2026

Introduction

If you've built an Android app and want to start earning money from it, Google AdMob is the easiest and most reliable way to do it. AdMob lets you display ads inside your app and pays you every time users view or click on them. In this step-by-step guide, we'll cover exactly how to integrate AdMob into your Android app and start generating revenue in 2026.

What is AdMob?

AdMob is Google's mobile advertising platform. It connects your Android or iOS app with advertisers who pay to show their ads to your users. AdMob supports multiple ad formats including banner ads, interstitial ads, rewarded ads, and native ads. It's free to use and pays out once you hit the $100 threshold.

Step 1: Create a Google AdMob Account

Go to admob.google.com and sign in with your Google account. Click "Get started" and follow the setup wizard. You'll need to provide your payment details (bank account or UPI for India) and tax information to receive payouts.

Step 2: Register Your App in AdMob

  1. In the AdMob dashboard, click "Apps" in the left menu
  2. Click "Add app"
  3. Select Android as the platform
  4. Choose whether your app is already on Google Play or not
  5. Enter your app name and click "Add app"
  6. Copy your App ID — you'll need this in your code

Step 3: Create an Ad Unit

After adding your app, you need to create ad units for each type of ad you want to show:

  • Go to your app in AdMob dashboard
  • Click "Ad units" then "Add ad unit"
  • Choose your ad format (Banner, Interstitial, Rewarded, etc.)
  • Give it a name like "Main Banner" or "Game Over Interstitial"
  • Click "Create ad unit" and copy the Ad Unit ID

Step 4: Add the AdMob SDK to Your Android Project

Open your build.gradle (app level) file and add the following dependency:

implementation 'com.google.android.gms:play-services-ads:22.6.0'

Then in your AndroidManifest.xml, add your App ID inside the <application> tag:

<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX"/>

Step 5: Initialize the Mobile Ads SDK

In your MainActivity.java, initialize AdMob in the onCreate() method:

MobileAds.initialize(this, initializationStatus -> {});

Step 6: Display a Banner Ad

Add an AdView to your XML layout:

<com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adSize="BANNER" ads:adUnitId="ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX" />

Then load the ad in your Activity:

AdView adView = findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder().build(); adView.loadAd(adRequest);

Step 7: Use Test Ads During Development

Always use Google's test ad unit IDs during development. Using real ad unit IDs while testing can get your AdMob account banned. Use this test banner ID: ca-app-pub-3940256099942544/6300978111. Switch to your real Ad Unit ID only before publishing to the Play Store.

Ad Types and Best Practices

  • Banner Ads: Best for apps with lots of screen time. Place at the bottom of the screen.
  • Interstitial Ads: Full-screen ads shown at natural break points (e.g., between game levels). Don't show them too often or users will uninstall your app.
  • Rewarded Ads: Users watch a video ad in exchange for in-app rewards. These have the highest eCPM and best user experience.
  • Native Ads: Ads that blend into your app's design. Best for content-heavy apps.

How Much Can You Earn?

Your earnings depend on your app's daily active users (DAU) and the eCPM (earnings per 1000 impressions) of your ad units. Typical eCPM rates in India range from $0.10 to $0.80 for banners, and $2 to $10 for rewarded video ads. An app with 1,000 daily active users showing rewarded ads could realistically earn $50–$200 per month.

Conclusion

Integrating AdMob into your Android app is one of the smartest moves you can make as an indie developer. It's free, easy to set up, and can turn your passion project into a source of passive income. Follow the steps above, use test ads during development, and always prioritize user experience when placing ads. The more users love your app, the more they'll keep coming back — and the more you'll earn.

Have questions about AdMob integration? Drop them in the comments below!

Comments

Popular posts from this blog

How to Publish Your First Android App on Google Play Store in 2026

Inspire Me Now - Motivation Nation

How to Learn Python Programming from Scratch in 2026