Javatpoint Logo
Javatpoint Logo

Android Google AdMob

In this tutorial we will learn how to display ads on our android application. Ads can be of different types such as:

  1. Banner ads
  2. Interstitial ads
  3. Rewarded Video ads

Banner Ads: Banner ads are rectangular text or image ads that occupy a small spot in app's layout. Banner ads stay on layout while users are interacting with the app and ads refresh after a certain period of time.

Interstitial Ads: Interstitials ads are full screen ads that cover entire app's layout. Interstitial ads displayed at transition point of an app. While interstitial ads displayed, user are two options either click on it and move to ads location or either close it and return to app.

Rewarded Video Ads: Rewarded video ads display full screen video ads in exchange for in app rewards.

Create Ad Units

  1. To implement Google AdMob, we need to create AdMob accout https://apps.admob.com/signup or Sing into AdMob account https://apps.admob.com .
  2. After login through AdMob account click on Monetize Tab to create Ad id for existing app or for new app. For our existing app we click on "SEARCH FOR YOUR APP" and for new app we click on "ADD YOUR APP MANUALLY" and gave app name.
  3. android Google Admob 1
  • Now we select the Ads types that are to be displayed on app's layout. For Banner Ads click on Banner tab, for Interstitial Ads click on Interstitial tab, for Rewarded Video Ads click on Rewarded Interstitial.
  • Banner Ads:

    android Google Admob 2

    Interstitial Ads:

    android Google Admob 3

    After successfully creation of Ad unit id, a new window display Ad Unit name and Ad unit ID.

    android Google Admob 4
    Next TopicAndroid Banner Ads




    Please Share

    facebook twitter google plus pinterest

    Learn Latest Tutorials