Post on 23-Jun-2015
description
Build a great app business
with AdMob
• Android application development
figure 1. Showing where you can find your Publisher ID
Requirements
Add and reference the Google Play services library project
Add Meta Data Tag
Declare com.google.android.gms.ads.AdActivity
Set up network permissions
Adding a com.google.android.gms.ads.AdView
Android apps are composed of View objects, which are Java instances the user sees as text areas, buttons and other controls. AdView is simply another View subclass displaying small HTML5 ads that respond to user touch.
Like any View, an AdView may be created either purely in code or largely in XML.
The five lines of code it takes to add a banner:
1. Import com.google.android.gms.ads.*
2. Declare an AdView instance
3. Create it, specifying the ad unit ID
4. Add the view to the UI
5. Load it with an adThe easiest place to do all this is in your app's Activity.
Result
Banner Options
Download an example project
https://google-mobile-dev.googlecode.com/files/BannerExample_Play_1.0.zip
Thank You.