Use Firebase with Google AdMob
Google AdMob is an easy way to monetize mobile apps with targeted, in-app advertising.
Ready to get started? Choose your platform:
Key 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.
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.
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.
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
Next steps
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:
Test new ad format adoption (overview | implementation).
Optimize ad frequency (overview | implementation).
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025年11月06日 UTC.