This post is only for developers who are interested in making money using advertisements. Use this to understand how to use AdMob to add advertisements in Android applications. The steps for adding advertisement on Android application using AdMob are:
Create an AdMob account by browsing to http://www.admob.com
Once your AdMob account is created, Login to your account.
Step 1: Click on sites & Apps tab on the top menu. Then click on Add Site/App button to add the application you want your advertisements to show up on.
Step 2: Select the platform your created application is, in this case select Android.
Step 3: Enter the required details to add an app to the list. Write the name of your application in the app name field, and write the android package URL as market://details?id=<Package name>. Enter your package name by replacing the <Package name >. For category select what type of app your application is, and write a small description in the description box to tell what type of app it is. There is also an option to include Google ads, which can be useful to get ad fills when AdMob ads are not displayed.
Step 4: Once you hit continue, AdMob will add your application to the list and ask you to download the AdMob Android SDK. Click on the download button to download the SDK.
Step 5: While AdMob SDK is downloading, click on the go to Sites/Apps button to return to your list applications, then click on manage settings on the listed app to find your publisher ID. Save this information for future use in Eclipse to incorporate AdMob in your application.
Step 6: Extract the downloaded. Zip file with the AdMob Android SDK to an easily accessible location.
Step 8: Select “Java Build Path” option from the navigation plan to your left and then click on “libraries tab” to add the SDK file. Click on “Add external JARS…” button and locate the unzipped AdMob SDK JAR file on your disk, and add it to your project.
Step 9: If you successfully completed the previous step, you should now see the JAR file located under, Referenced Libraries folder inside your project.
Step 10: Once the SDK is added to your project, open the AndroidManifest. xml file located in your project. In order to use AdMob in your application you must include the following xml Just before the </application> tag enter a new activity for com.google. ads. AdActivity by adding this xml.
<activity android:name=”com. google. ads. AdActivity” android: configChanges=”keyboard|keyboardHidden| orientation| screenLayout| uiMode| screenSize| smallestScreenSize” />”
Step 11: After the </application> tag enter permissions that are required by AdMob.<uses-sdk android:minSdkVersion=”7″ /> <uses-permission android:name=”android. permission. INTERNET” /> <uses-permission android: name=” android. permission. ACCESS_ NETWORK_ STATE” />
Step 12: Open the project.properties file in your Android application folder and change this line of code at the end of the file to make AdMob SDK work. AdMob SDK requires android SDK-13, and since our application was SDK-7 we require changing the target version, target=android-13.
Step 13: Finally, to add an AdMob advertisement to your application, open your desired layout xml file.
Hope youlike this post and follow the above steps carefully to create a advertisement in android apps using an AdMob. And for more information visit the following link http://www.wikihow.com/Add-Advertisements-to-Your-Android-Applications-Using-Admob.