Register Login Featured
Stats: 2418 members, 1523 topics. Date: Monday, 20th August 2018

General Wordpress Blogspot Forums Crypto Traffic Money

How to Add Google Admob Ads to Android App (Banner and Interstitial ads)

How to Add Google Admob Ads to Android App (Banner and Interstitial ads) by : 4:54 pm On January 18, 2018

Google’s AdMob is the most popular mobile ads platform used by app developers worldwide. Integrating AdMob to your app allows you to monetize your app and earn on the basis of Impressions and clicks on ads in your app. AdMob provides you tools to analyze, understand and track your audience through integration with google analytics.
It has a very flexible ad control and allows you to choose between a variety of types and sizes of the apps which can help to increase your earning through app advertising. Admob also has support for in-app purchase ads to increase the number of in-app transactions from your users.
Admob is available for Android, iOS, Unity and Cocos platform. We will be discussing the Banner and Interstitial versions of Ads which are very popular across all the ad platform.

Admob Banner vs Interstitial ads

Banners Ads are small ads which are usually displayed at the top or bottom of the screen as shown int the figure below. Standard android admob banner size is 320×50 although other sizes are also available. Banner Ads are very popular with mobile developers since they don’t interfere much with the user experience and cover very small part of the screen. However they have a low engagement rates.
Google Admob Banner Ad

Interstitials Ads are bigger full-screen ads. They block the screen for some time until the user presses a “x” button to close the Ad. By blocking the complete screen interstitial Ads compel the user to interact with the ad, giving high user engagement and conversion rates. However these Ads if not added at proper places will often lead to frustrating user experience. Below is an example of interstitial ad.
Google AdMob Interstitial Ad example

In this tutorial we will discuss admob integration on android using an example App. We will be creating a dummy game app consisting of two levels. Level One will show the Banner Ads and when the user clicks on the LevelTwo an Interstitial Ad will be loaded and the user will be taken to Level Two once the Ad is closed.

Before starting the discussion, please note the following:

Clicking on your own Ads to earn money is strictly against the Google AdMob’s policy, You must use the test Ads while the app is in devlopment, even if you want to test for live ads before launching your app, avoid clicking on them otherwise your Admob account might get suspended.


  1. Android Studio installed on your PC (Unix or Windows).
  2. A real time android device (Smartphone or Tablet) configured with Android Studio.

Creating a New Android Studio Project

  1. Open Android Studio and create a new project by clicking on File -> New -> New Project.
  2. Enter project name, we have used GameApp and company domain (We have used our company domain i.e Similarly you can use yours).
  3. Click Next and choose appropriate android version.
  4. Click Next and select an Empty Activity.
  5. Choose activity name, we have named the activity as LevelOneActivity. Also make sure generate layout checkbox is checked.

This will create new android studio project. Now you are ready to montetize your new Game App.

Create your Ad Units

    1. Go to Google Admob Page and Sign-Up if you don’t have an existing account. Just Sign-In in case you already have a Google Admob Account.
    2. Click on Monetize Tab

Monetizing your android App using Admob

    1. Click on Montetize New App button.

Click on Monetize New App

    1. Select an App. You have three Options as shown in the fig below.
      1. You can search your app, incase you are adding admob to an existing app.
      2. Add App Manually allows to add a new app by giving a package name.
      3. Select a previously added app, if you have already added the app but didn’t follow the complete process to add admob ads.
    2. Enter your app name, select the platform as Android and click on Add app button.

Select app to add Google Admob

    1. Select ad format and name the ad unit.
      Since we are adding both the banner and interstitial ads we have to make two entries one for each type of ads and save them. You can choose other options as per your requirement. We are retaining the default options.

Create Interstitial Ad unit
Create Banner Ad Unit

    1. On saving the Ad unit you will get Ad unit name and Ad unit ID as shown in the figure below. Note the Ad unit ID for the two Ad units you have just created. Later we have to put these ID’s in your apps strings.xml file.

Ad Unit Id

Add Banner and Interstitial adds to your Project

    1. Add the following dependency in your app’s build.gradle file to use the Google Admob SDK in your project.


compile ''
  • Add the Ad ID for the Ad Units created earlier in the strings.xml file.


    <stringname="interstitial_ad_sample">Interstitial Ad Sample</string>
    <stringname="level_one">Level One</string>
    <stringname="level_two">Level Two</string>
    <stringname="gameHeader">My Game App</string>

Publication author

offline 2 months




Comments: 20Publics: 13Registration: 03-11-2017

Re: How to Add Google Admob Ads to Android App (Banner and Interstitial ads) by Llllll: 1:55 am On January 29, 2018


You must be logged in to post a comment.


(Go Up)

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

GitHubNg.Com - Copyright © 2017 - Henry Ijogu. All rights reserved. See How To Advertise.
Disclaimer: Every member is solely responsible for anything that he/she posts or uploads on this Forum.


Password generation