Use Firebase with Google AdMob
plat_ios
plat_android
plat_cpp
plat_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.
iOS
setup
Android setup
C++ setup
Unity setup
Key capabilities
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
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.
|
Next steps
Learn how to get started on
iOS
or
Android
.
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: