Android Aalto Community -- Integrating AdMob in Android Apps
1. Integrating AdMob in your App
Hackathon #3
Claudio M. Camacho
www.androidaalto.org
22.01.2011 Android Aalto Community
2. Agenda
• introduction
• briefing about Android Market
• registering at AdMob
• AdMob in the App
• tips and tricks
• summary
22.01.2011 Android Aalto Community
4. Android Market
• being at:
http://market.android.com/publish
• two different SLAs
• one for free apps
• another one for payed apps
• $25 per year (developer fee)
• 30% of earnings go to Google
• taxation is not included
22.01.2011 Android Aalto Community
5. Registering at AdMob
• register (free) at:
http://www.admob.com
• app package name (e.g. com.mkd.testapp)
• linked to your app in the market
• generates AdMob publisher's code
• more information:
http://developer.admob.com/wiki/PublisherSetup
22.01.2011 Android Aalto Community
6. AdMob in the App
• adding the JAR library (admob-sdk-android.jar)
• editing AndroidManifest.xml
• AdMob viewing attributes (res/values/attrs.xml)
• adding AdMob to your layout
• beware the padding!
• setting Test mode
22.01.2011 Android Aalto Community
7. Tips and Tricks
• beware the (horizontal) padding!
• use Ad settings at admob.com (for simplicity)
• AdMob placement
• design your app having the Ad space in mind
• use as many views as possible to show it
• AdMob refresh
• use a scheduled refresh to change your Ad
• different Ads are differently worthy (revenue)
22.01.2011 Android Aalto Community
8. Summary
• different revenue streams using apps
• register to AdMob
• follow their PDF tutorial
• before publishing
• register to the Android Market
• use the same package.app name
• remove the Test code for your phone
• export a signed app and test it on your phone
22.01.2011 Android Aalto Community