AdMob Setup
Create AdMob App​
- Sign In to Google AdMob.
- Link Firebase to AdMob.
- Link Google Ads to AdMob.
- From side bar, click on
Apps
and thenAdd App
. Fill in the details.
Congratulations! You have created an AdMob app.
Add AdMob App ID to the Project​
- Select
Apps
and thenView all apps
. - Copy the App ID into
local.properties
with the keyADMOB_APPLICATION_ID
.
Congratulations! You have connected your AdMob app to the project.
Create Ad Units​
Without Ad Units, you can't show ads in your app. Here's how to create them:
- Click on the app you just created.
- Click on
Ad Units
and thenAdd Ad Unit
. Fill in the details. - You can copy the Ad Unit ID from the
Ad Units
page and paste it intoFirebase Remote Config
.
You can access your Ad Unit IDs from Firebase Remote Config and use them to initialize any Ads.