If you start to develop your first android application in Android Studio or in any other programming tool, you would like to have some benefit from it. The best way to achieve this is to add Google AdMob into your application. You must already have open account in Google AdMob. If you have your account opened, go there and copy your Google AdMob code, by clicking on link “Monetize”, choose your application and copy your code as it is shown in figure bellow. You will use this code later on in the application.
So when you start to develop your first android app with AdMob, just start new project in Android Studio.
Then choose SDK (APK 15 is recommended)
Next important step is to add Google AdMob Ads Activity to your application. Then your application will have Google AdMob by default.
Recommended activity is banner activity, since it is less invasive.
When project is started, be sure to know how to switch to design view (appâ†’resâ†’layoutâ†’activity_main.xml), and click to design tab.
Now you can change message from “Test ads are being shown. To show live ads, replace the ad unit … ” to something else, let’s say “Welcome”. So go to appâ†’javaâ†’cirvirlab.gcdâ†’MainActivity.java and make necessary changes there.
Now you have your first android app with AdMob, with zero functionality but with Google AdMob there.