How To Monetize Your App Using Google Admob

Hey guys, I hope you are doing well. Today here we will learn how to add Ads to our app and earn well. You developed greater apps. The best way to earn money to monetize apps using Google Admob. If you are an Android developer and want to earn money online every month, Admob is the best platform.

Introduction of Google Admob

Admob is a mobile advertising company and the parent organization of Google. Google Admob is the biggest app monetization platform.

Google Admob provides 4 types of Ads

  1. Banner Ads
  2. Interstitial Ads
  3. Rewarded Interstitial Ads
  4. Native Ads

In this tutorial, we will cover banner ads and Interstitial ads.

1. Banner Ads:

Banner Ads is like a banner. We can custumize size of of banner ads and set Ads at anywhere in activity. Add banner ads in app. Please follow below simple steps.

Step 1.
  • first Login with your Gmail account.
  • Goto to this link.
  • From the Apps option create App
  • If your app is already in play store then select YES otherwise NO.
  • Then provide app information and click ADD.
  • Then you will get an App ID. Copy it. You will need it later.
  • Now open your Android app project and paste this below code inside application section. Now paste your app id.
  • Then click on CREATE AD UNIT and you will find three ad types. Only Banner and Interstitial types will be used here.
  • Select Banner type. Provide Ad unit name and click on CREATE AD UNIT.
  • Copy Banner Ad unit id and save it .You will need it later.
  • Now open your android app project and open activity_main.xml and paste below xml code.
  • Open MainActivity.java file and put below code. Here also put app Id.

You test your app. It will show ads.

2. Interstitial Ads:

Then again go back to Ad types and select Interstitial Ad type. Provide Ad unit name and select CREATE AD UNIT.

  • Copy the Interstitial ad unit id and save it. You will need it later.
  • Add below code in mainActivity.java

Now test your app. Ads will show. If you got any error and problem please comment below.

1 thought on “How To Monetize Your App Using Google Admob”

Leave a Comment