Android TutorialsNo Comments

add2
304 views.

If you want to add advertisements to your application first create account in Admob.

And login in to admob & Click on Monitor new app

From select Add manually

admob

Just add App Name.

After that you will find 4 different types of adds

  1. Banner
  2. Interstitial
  3. Reward Interstitial
  4. Native

Here will see about  how to Banner and Interstitial adds

admob1

After that just create one xml file with below code (Banner Add)

After that in which layout you want display this there you can add like below

And and Related Activity.java file below code within oncreate method

After that just create one xml file with below code (Interstitial Add)

Add internet permission in Manifest file

Add play store dependency in graddle

add1 add2

Be the first to post a comment.

Add a comment