Stay organized with collections
Save and categorize content based on your preferences.
Use Firebase with Google AdMob
plat_iosplat_androidplat_cppplat_unity
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 revenue
from your app. Using Firebase with AdMob provides you with
additional app usage data and analytics capabilities.
Show ads from millions of Google advertisers in real time
or use AdMob mediation to earn from over 40 premium networks.
Simplify your ad operations,
improve competition, and earn more, for free.
AdMob mediation has
ad 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 with AdMob,
by showing ads to users in more than 200 markets.
Do you have more than one app? House ads from AdMob is a free tool
that enables you to cross-promote your apps to your user base,
across your family of apps.
Access monetization reports
AdMob 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 be
displayed using various format options which are seamlessly added to platform
native UI components. On Android, you can additionally display in-app purchase
ads, allowing users to purchase advertised products from within your app.
Banner
Interstitial
Native
Rewarded
To display ads, you'll need an AdMob-registered app that integrates the
Google Mobile Ads SDK (iOS |
Android). You can then activate one or more
Ad Unit IDs which are unique identifiers for the places in your app to display
ads.
The Mobile Ads SDK helps you gain insights about your users, drive
more in-app purchases, and maximize ad revenue. To do all this, the default
integration of the SDK collects device information, publisher-provided location
information, and general in-app purchase information (such as item purchase
price and currency).
User metrics, Firebase, and Google Analytics
To make informed decisions about optimizing your app's user experience and your
ad revenue, you'll need metrics and data from your app. Working together,
AdMob, Firebase, and Google Analytics offer additional levels of
configuration to help you achieve your optimization goals.
View user metrics in your AdMob account
Enable user
metrics in your
AdMob account to access new data and powerful reports, such as the
rewarded report,
that may help inform your monetization strategy.
Explore and work with your analytics data via Firebase
Link your AdMob app
to Firebase
to help you improve app monetization and user engagement. For example, you
can build custom audiences and even use BigQuery with your analytics data.
Access more customization features for your analytics data
Add the Firebase SDK for
Google Analytics to implement
more customized analytics (like custom events), view more complete user
metrics in your AdMob account, and start using other Firebase products.
Learn more about the benefits of these
additional levels of configuration!
Implementation path
Configure your app to use Firebase
Add Firebase to your new or existing app in the Firebase console.
Create an AdMob account and register your app
Sign up for an AdMob account
and register your app as an AdMob app. Before you publish, add to your
app any Ad Unit IDs that you've created.
Enable user metrics and link your AdMob app to Firebase
(Optional, but strongly recommended)
In your AdMob account, enable user metrics to view curated metrics.
Also, link your AdMob app to Firebase to explore and work with your
analytics data via the Firebase console.
Update project dependencies
Add the Google Mobile Ads SDK using CocoaPods on iOS or Gradle on Android.
Implement your first ad in your app
Use the Mobile 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.
Follow the quickstart, a tutorial that guides you through setting up AdMob
on iOS
and
Android.
Optimize ad monetization for your app by trying out different ad formats or
configurations with a small subset of users, and then making data driven
decisions about implementing the ad for all your users.
To learn more, check out the following tutorials:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[],[],null,["Use Firebase with Google AdMob \nplat_ios plat_android plat_cpp plat_unity \nGoogle AdMob is an easy way to monetize mobile apps\nwith targeted, in-app advertising. \n[Google AdMob](//admob.google.com/home/?utm_source=firebase&utm_medium=et&utm_campaign=firebase-docs&utm_content=2017Q1) is a mobile advertising platform that you can use to generate revenue from your app. Using Firebase with AdMob provides you with additional app usage data and analytics capabilities.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nReady to get started? Choose your platform:\n\n[iOS+](/docs/admob/ios/quick-start)\n[Android](/docs/admob/android/quick-start)\n[Unity](/docs/admob/unity/start)\n[C++](/docs/admob/cpp/quick-start)\n\n\u003cbr /\u003e\n\nKey capabilities\n\n|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Earn more from in-app ads | Show ads from millions of Google advertisers in real time or use AdMob mediation to earn from over 40 premium networks. Simplify your ad operations, improve competition, and earn more, for free. AdMob mediation has [ad network optimization](//support.google.com/admob/answer/3379794) built in, which automatically adjusts the positions of your other ad networks in your mediation stack, which maximizes your revenue. |\n| 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. |\n| Scale fast | When your app is a global or domestic hit, you can monetize users quickly with AdMob, by showing ads to users in more than 200 markets. Do you have more than one app? House ads from AdMob is a free tool that enables you to cross-promote your apps to your user base, across your family of apps. |\n| Access monetization reports | AdMob 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. |\n\nHow does it work?\n\n[Google AdMob](//www.google.com/admob/?utm_source=firebase&utm_medium=et&utm_campaign=firebase-docs&utm_content=2017Q1)\nhelps you monetize your mobile app through in-app advertising. Ads can be\ndisplayed using various format options which are seamlessly added to platform\nnative UI components. On Android, you can additionally display in-app purchase\nads, allowing users to purchase advertised products from within your app.\n\n|--------|--------------|--------|----------|\n| Banner | Interstitial | Native | Rewarded |\n\nTo display ads, you'll need an AdMob-registered app that integrates the\nGoogle Mobile Ads SDK ([iOS](/docs/admob/ios/quick-start) \\|\n[Android](/docs/admob/android/quick-start)). You can then activate one or more\nAd Unit IDs which are unique identifiers for the places in your app to display\nads.\n\nThe Mobile Ads SDK helps you gain insights about your users, drive\nmore in-app purchases, and maximize ad revenue. To do all this, the default\nintegration of the SDK collects device information, publisher-provided location\ninformation, and general in-app purchase information (such as item purchase\nprice and currency).\n\nUser metrics, Firebase, and Google Analytics\n\nTo make informed decisions about optimizing your app's user experience and your\nad revenue, you'll need metrics and data from your app. Working together,\nAdMob, Firebase, and Google Analytics offer additional levels of\nconfiguration to help you achieve your optimization goals.\n\n1. **View user metrics in your AdMob account**\n\n [Enable user\n metrics](//support.google.com/admob/answer/9263723) in your\n AdMob account to access new data and powerful reports, such as the\n [rewarded report](//support.google.com/admob/answer/9005580),\n that may help inform your monetization strategy.\n2. **Explore and work with your analytics data via Firebase**\n\n [Link your AdMob app\n to Firebase](//support.google.com/admob/answer/6383165)\n to help you improve app monetization and user engagement. For example, you\n can build custom audiences and even use BigQuery with your analytics data.\n3. **Access more customization features for your analytics data**\n\n [Add the Firebase SDK for\n Google Analytics](/docs/admob/analytics-and-firebase) to implement\n more customized analytics (like custom events), view more complete user\n metrics in your AdMob account, and start using other Firebase products.\n\nLearn more about the [benefits](/docs/admob/analytics-and-firebase) of these\nadditional levels of configuration!\n\nImplementation path\n\n|---|---------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Configure your app to use Firebase | Add Firebase to your new or existing app in the Firebase console. |\n| | Create an AdMob account and register your app | [Sign up for an AdMob account](http://www.google.com/admob/?subid=WW-EN-ET-firebase-docs&utm_source=internal&utm_medium=et&utm_campaign=firebase-docs) and register your app as an AdMob app. Before you publish, add to your app any Ad Unit IDs that you've created. |\n| | Enable user metrics and link your AdMob app to Firebase | *(Optional, but strongly recommended)* In your AdMob account, enable user metrics to view curated metrics. Also, link your AdMob app to Firebase to explore and work with your analytics data via the Firebase console. |\n| | Update project dependencies | Add the Google Mobile Ads SDK using CocoaPods on iOS or Gradle on Android. |\n| | Implement your first ad in your app | Use the Mobile 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. |\n\nNext steps\n\n- Learn how to get started on [iOS](/docs/admob/ios/quick-start) or\n [Android](/docs/admob/android/quick-start).\n\n- Follow the quickstart, a tutorial that guides you through setting up AdMob\n on [iOS](//github.com/firebase/quickstart-ios/tree/master/admob/)\n and\n [Android](//github.com/firebase/quickstart-android/tree/master/admob/).\n\n- Optimize ad monetization for your app by trying out different ad formats or\n configurations with a small subset of users, and then making data driven\n decisions about implementing the ad for all your users.\n To learn more, check out the following tutorials:\n\n - *Test new ad format adoption*\n ([overview](/docs/tutorials/admob_test-new-ad-format-adoption_solution-overview) \\|\n [implementation](/docs/tutorials/admob_test-new-ad-format-adoption_implementation-guide)).\n\n - *Optimize ad frequency*\n ([overview](/docs/tutorials/optimize-ad-frequency/solution-overview) \\|\n [implementation](/docs/tutorials/optimize-ad-frequency))."]]