Integrating the Google Mobile Ads SDK into an app is the first step toward displaying ads and earning revenue. Once that’s done, you can choose an ad format (such as native or rewarded video) and get a detailed set of steps for implementing it.

Prerequisites

  • Use Android Studio 1.0 or higher
  • Target Android API level 14 or higher
  • Recommended: create an AdMob account and register an app

PS : Creation of an Admob account also requires a valid Adsense and Adwords account. The approval process for the account may take some time upto a few weeks.

Once you have logged onto Admob account its time to start making money

 

1 . Click on Monetize option on top left menu to start

2.Select your app or simply add a default name and proceed

there are 4 types of Ad Units available for use

Banner Ads – These are small ad units with a fixed width and very small height usually placed at the bottom of an activity or screen. This Ad Unit is not affected by any other items on the screen.

Banner Admob Ad
Banner Ad

A modification of this Ad Unit is the Smart Banner which has Dynamic Width property unlike a normal banner ad. You can make a banner ad smart banner by the following command in xml

 

Interstitial Ad – These are full page ads in the form of Text, Text & Images or Video. These ads provide higher revenue than Banner Ads.

Interstitial Ads

Rewarded Video – This is generally preferred for Games where the user gets an incentive in the form of money, reward points upon viewing the ad. These ads are always video ads and non skippable

Rewarded Interstitial

Native Ads – These are highly used ad units as you can customize them to look like your other cards in Android or iOS. You can design these ads yourself and many options are available.

Native Ads

 

After selecting Ad type, choose Text and Image ads for higher Fill rate. Fill rate is the number of times google chooses to send Ads to your app divided by the number of times your app has requested for ads. You receive a higher fill rate on an app with higher traffic from individual and unique users

Finally click save. You will receive 2 important information related to this process which will be used to display ads on your app.

The APP ID and Ad Unit id is required to display ads.

Lets start with implementing this code in Android Studio

In the build.gradle file add this code under dependencies

In the XML Layout file where you want to place your ad, place the code :

In the Java file :

 

Run the app. Your ads should now start displaying. Its a good idea to add test devices while developing the code so that Google doesnt treat these as an actual request. If high number of invalid requests are made from the developer account then your Admob Account will be suspended.

 

11 comments
  • bigo live hack gamegang.tk - bigo live hack latest
    September 5, 2017 at 2:35 am

    Hi, glad that i saw on this in bing. Thanks!

    Reply
  • hacker news
    September 24, 2017 at 6:19 am

    yahoo brought me here. Cheers!

    Reply
  • pubg free on steam
    October 13, 2017 at 3:20 am

    I have interest in this, cheers.

    Reply
  • homescapes mod apk
    October 18, 2017 at 9:18 pm

    I Think that it outrageous to wait 20 min per heart.

    Reply
  • click here
    October 23, 2017 at 2:10 pm

    Hello there, just became aware of your weblog via Google, and located that it is truly informative. I am gonna be careful for brussels. I’ll appreciate when you proceed this in future. A lot of other people might be benefited out of your writing. Cheers!|

    Reply
  • click here
    October 24, 2017 at 8:30 pm

    Thank you for every other informative site. The place else could I am getting that type of info written in such an ideal method? I have a undertaking that I’m just now operating on, and I have been at the look out for such info.|

    Reply
  • zombs.io mods
    October 25, 2017 at 10:29 pm

    Ni hao, here from baidu, me enjoyng this, I come back soon.

    Reply
  • bandicam v4.0.0.1331
    October 30, 2017 at 7:19 am

    Ha, here from yahoo, this is what i was looking for.

    Reply
    • Siddhant Chandgothia
      November 9, 2017 at 5:52 am

      Thanks

      Reply
  • real bike racing cheats
    November 8, 2017 at 2:45 pm

    I simply must tell you that you have an excellent and unique website that I kinda enjoyed reading.

    Reply
    • Siddhant Chandgothia
      November 9, 2017 at 5:52 am

      Thanks a lot

      Reply

Leave a Comment

Your email address will not be published. Required fields are marked *