Specify permissions in the manifest <uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Set the target SDK in Eclipse to at least 13 (even if the
minSdkVersion is lower in the manifest.
Add the AdMob .jar as an external JAR library, in the
app properties, and use order and export to ensure it is included
when compiling.
Insert an AdView somewhere in your UI.
Register the app with AdMob to get a unit/publisher id, and
put that in a ads:adUnitId tag.
Set the ad size with ads:adSize, e.g., BANNER
is common for phones.
Specify the test devices with ads:testDevices,
probably including at least TEST_EMULATOR
To autoload an advert when the app starts, specify
ads:loadAdOnCreate="true".
Loading ads
Auto refresh by a setting in the AdMob web pages
Request new ads using the loadAd method
Specify demographic information in the AdRequest
parameter to loadAd.
Watch what's happening by implementing the
AdListener interface.