Create Admob Ads In Android Studio | Android App Development Tutorial

Learn How To Place Admob Banner Ads And Interstitial Ads In Your Android Application | Android Studio.Tutorial For Beginners

– The Android Studio tutorial is designed to show “How to Place
Banner Ads and Interstitial Ads in your Android Application if you
are looking to earn revenue from your apps.

– In this tutorial, you will see implementation of Banner and
Interstitial Ads where we’ll be using Google Admob Test App Id,
Test Banner Id and Test Interstitial Id. You can get the sample Id
here –

– Go to this link to generate ur app id and unit id

(i) Create a new App by giving the package name of the app you
want to integrate AdMob.
(ii) When the App is created, you can find APP ID on the
dashboard whose format is like ca-app-pub-
(iii) Select the newly created App and click on Add Ad Unit
button to create a new ad unit for your ads.
(iv) Select ad format and write a name for ad unit.
(v) Your Ad unit will have format like this- ca-app-pub-

5. Once the ad unit is created, you can notice the Ad unit ID on the dashboard. An example of ad unit id look like ca-app-pub-066XXXXXXX/XXXXXXXXXXX

– This project is very simple to implement and has very simple

1. Add Gradle dependency in Build.Gradle (App)
2. Add Adview in Activity_main.xml file
3. Also add AdUnit Id and Adsize (refer the tutorial carefully)
4. Put all your Id in String.xml file.
5. Create a class and extend with Application class, Inside
onCreate function Just initialize your admob app id.
6. In file, create AdRequest and pass the adview.
7. Interstitial ads doesn’t require any view to be added in its xml
layout. Just modify the MainActivity class as shown in the
tutorial and don’t forget to add listener ( we need to specify some
event to display interstitial ads )

#Android Studio Tutorial | #Admob Google Ads | #Banner Ads And Interstital Ads | Android App Development Tutorial In Java

Also Watch:

Music Credit:
Song: Ikson – Anywhere (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Video Link:

Subscribe Here:

Thanks For Watching This Video. Please Like And Subscribe For More.

25 Replies to “Create Admob Ads In Android Studio | Android App Development Tutorial”

  1. hari496

    mam i'm having a error pls help (Android studio error:Android resource linking failed C:UsersacerAndroidStudioProjectsMyApplicationappsrcmainreslayoutactivity_main.xml:15: error: attribute adUnitid (aka com.example.myapplication:adUnitid) not found. error: failed linking file resources.)

  2. Abbas

    Sister ap ne is video me ads lagany ka tarika bataya hy mgr mera masla ek aur hy.
    Me ne internet se aik project download kia hy us me yehi test ads lagy hy jo ap ne is video me lagaye hy.
    Us project me buhat coding ki hoi hy me us project se ads remove (delete) krna chahta ho.

    Please mujhe ye jaldi batao k me ads ki coding kahan se delete kro ta k apps me ads show na ho aur apps me koi masla na bany apps crashed na ho.

    Ap jb b mere comment ko parho to jaldi mujhe reply krna me ap k reply ka intzaar kr rha ho.

    Mujhe ap is Email: pr msg kr dena ya comments me bata dena jaisa ap ko thek lagy.
    Jaldi please..

  3. Jaydip Sardhara

    Kya hame vo link mil sakti hai jo ads pe click karke play store pe redirect hoti, and kya hame count mil sakta hai jo bhi ads pe click karke kitne user ne app install ki hai .?? Plz plz plz answer plz request…….plz

  4. satish sharma

    Aap bahut hi ache se samjhati ho . kya aap text book ka app banana sikha sakti ho . jese button1 par click karne par science ki book ho button2 par click karne par Mathematics ki book open ho .or usme page ko swipe kane par next page open ho .

Leave a Reply

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