Skip to main content

Configure Firebase With Admob on Android

Admob with Firebase and getting Ad unit Ids

1. Visit Admob and sign up for a new account using your google account. Once you login to your Admob account, you will be displayed a dashboard as shown below. Click on Monetize button to add a new app to your Admob account.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
2. Click on Add your app manually and give it a name and select Android platform as shown below. A new App will be created and App-Id will be displayed.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
3. Next step is to select an Ad format and customizing it the way you want. Firstly we will start with selecting Banner ad format as shown below. After customizing the Banner ad, you need to click on Save button. Once you click on Save button, a new Ad unit will be created with a unique ad-unit Id. Please make a note of this ad-unit Id corresponding to the Banner ad we created just now.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
4. Next step is to link your admob app with the Firebase app you have created in the previous step. Click on Link to Firebase button and enter the package name of your android application. Click on Continue button.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
5. Now select Link to an existing Firebase project and existing Firebase app option as shown below.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
6. Now you will be shown a message indicating that your Admob app is successfully linked with your Firebase project. Click on Done button.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
7. Next step is to create an Interstitial Ad unit and customize it. Click on Create Another Ad Unit button and select Interstitial Ad format.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
8. After customizing the Interstitial ad, you need to click on Save button. Once you click on Save button, a new Ad unit will be created with a unique ad-unit Id. Please make a note of this ad-unit Id corresponding to the Interstitial ad we created just now.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
9. Next step is to create a Native Ad unit and customize it. Click on Create Another Ad Unit button and select Native Ad format.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
10. I have selected the ad size to be Medium and a simple template having install button. After customizing the Native ad, you need to click on Save button.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
11. Once you click on Save button, a new Ad unit will be created with a unique ad-unit Id. Please make a note of this ad-unit Id corresponding to the Native ad we created just now.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android
12. We now have all the 3 Ad unit Ids required for this tutorial. Now if you visit Monetize tab of your Admob dashboard, it will be displayed as shown below.
https://wolaris.blogspot.com | Configure Firebase With Admob on Android

Popular posts from this blog

Tutorial Firebase Push Notification With Image on Android

Firebase cloud messaging (FCM) is a new version of Google Cloud Messaging (GCM). Using FCM you can send notification messages to your client application in order to drive user engagement. Notification messages can contain an optional data payload, which is delivered when users tap on the notification. Use notification messages when you want Firebase cloud messaging (FCM) to handle displaying a notification on your client app’s behalf. Use data messages when you want to process the messages on your client app. Create a new Android 1. Create a new Android Project in Android Studio. Give it a name and select the Minimum SDK on which your app will run on. I chose API 16 : Android 4.1 (JELLY_BEAN). 2. When you are prompted to add an activity to your application choose Blank Activity and click on next button. 3. In the next step click on Finish and in few seconds your application should be loaded in Android Studio. 4. Open build.gradle(Module:App) file of your application and add the ...

Learn to Make Ground Overlay Google Maps on Android

A land overlay is an image that is a permanent map. Unlike markers , ground cover on the ground to accommodate the screen oriented, turn, tilt, or zoom the map to change the orientation of the image. Terrestrial overlays are useful when you want to define an image in a region on the map. If you want to add rich images that cover a large part of the map, you should consider covering tiles. Create a new android maps project 1. Start Android Studio. 2. Create a new project as follows:  If you see the Welcome to Android Studio dialog, choose Start a new Android Studio project, available under 'Quick Start' on the right of the dialog.  If you see the Welcome to Android Studio dialog, choose Start a new Android Studio project, available under 'Quick Start' on the right of the dialog. Otherwise, click File in the Android Studio menu bar, then New, New Project. 3. Enter your app name, company domain, and project location, as prompted. Then click Next. ...

Tutorial Learn to Make RecyclerView on Android (Material Design)

Hi all, to complete the series Desain Learning Materials on Android I made, this time I will share how to make Android RecyclerView using Android Studio. Yup RecyclerView is a component of Android Material Desain, which replaces and ListView GridView. RecyclerView already well known, (not like the old days of 2014, when I learned first RecyclerView even some who use it) and is used to display a list of almost all applications. RecyclerView also has a default animation according to the standard Google Material Design when adding or removing components. Meanwhile, to set the position of the items on the list, RecyclerView LayoutManagers use, and there is some kind of layout manager that can be used. Then, using ViewHolder RecyclerView to keep a reference ditir- view, which used to be a point RecyclerView: ViewHolder a static class in adapter that holds the view the view that will be used to display one item of data. By using ViewHolder, initinya you can save time by using findViewByI...