Use Firebase withGoogle AdMob

Google AdMob is an easy way to monetize mobile apps with targeted, in-app advertising.

Google AdMob is a mobile advertising platform that you can use to generate revenuefrom your app. Using Firebase withAdMob provides you withadditional app usage data and analytics capabilities.


Ready to get started? Choose your platform:

iOS+AndroidUnityC++


Key capabilities

Earn more from in-app ads

Show ads from millions of Google advertisers in real time or useAdMob mediation to earn from over 40 premium networks. Simplify your ad operations, improve competition, and earn more, for free.

AdMob mediation hasad network optimization built in, which automatically adjusts the positions of your other ad networks in your mediation stack, which maximizes your revenue.

Improve user experience Native ads create a positive user experience as you monetize by matching the look and feel of your app. Choose from different ad templates, customize them, and experiment with different layout.
Scale fast

When your app is a global or domestic hit, you can monetize users quickly withAdMob, by showing ads to users in more than 200 markets.

Do you have more than one app? House ads fromAdMob is a free tool that enables you to cross-promote your apps to your user base, across your family of apps.

Access monetization reportsAdMob is the premier monetization platform for mobile. While generating ad revenue,AdMob also produces its own monetization reports that you can use to make smarter decisions about product strategy.

How does it work?

Google AdMob helps you monetize your mobile app through in-app advertising. Ads can bedisplayed using various format options which are seamlessly added to platformnative UI components. On Android, you can additionally display in-app purchaseads, allowing users to purchase advertised products from within your app.

Banner Interstitial Native Rewarded

To display ads, you'll need anAdMob-registered app that integrates theGoogle Mobile Ads SDK (iOS |Android). You can then activate one or moreAd Unit IDs which are unique identifiers for the places in your app to displayads.

TheMobile Ads SDK helps you gain insights about your users, drivemore in-app purchases, and maximize ad revenue. To do all this, the defaultintegration of the SDK collects device information, publisher-provided locationinformation, and general in-app purchase information (such as item purchaseprice and currency).

User metrics, Firebase, andGoogle Analytics

To make informed decisions about optimizing your app's user experience and yourad revenue, you'll need metrics and data from your app. Working together,AdMob, Firebase, andGoogle Analytics offer additional levels ofconfiguration to help you achieve your optimization goals.

  1. View user metrics in yourAdMob account

    Enable usermetrics in yourAdMob account to access new data and powerful reports, such as therewarded report,that may help inform your monetization strategy.

  2. Explore and work with your analytics data via Firebase

    Link yourAdMob appto Firebase to help you improve app monetization and user engagement. For example, youcan build custom audiences and even use BigQuery with your analytics data.

  3. Access more customization features for your analytics data

    Add the Firebase SDK forGoogle Analytics to implementmore customized analytics (like custom events), view more complete usermetrics in yourAdMob account, and start using other Firebase products.

Learn more about thebenefits of theseadditional levels of configuration!

Implementation path

Configure your app to use Firebase Add Firebase to your new or existing app in theFirebase console.
Create anAdMob account and register your appSign up for anAdMob account and register your app as anAdMob app. Before you publish, add to your app any Ad Unit IDs that you've created.
Enable user metrics and link yourAdMob app to Firebase(Optional, but strongly recommended) In yourAdMob account, enable user metrics to view curated metrics. Also, link yourAdMob app to Firebase to explore and work with your analytics data via theFirebase console.
Update project dependencies Add theGoogle Mobile Ads SDK using Swift Package Manager on iOS or Gradle on Android.
Implement your first ad in your app Use theMobile Ads SDK to create space in your app UI for a banner ad (a great place to start!). You can set the layout to just the way you like it or use smart banners that will resize depending on the device size and orientation.

Next steps

  • Learn how to get started oniOS orAndroid.

  • Follow the quickstart, a tutorial that guides you through setting upAdMoboniOS andAndroid.

  • Optimize ad monetization for your app by trying out different ad formats orconfigurations with a small subset of users, and then making data drivendecisions about implementing the ad for all your users.To learn more, check out the following tutorials:

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-05 UTC.