An Android application cannot achieve everything on its own, it will always need the company of external jars/libraries to achieve different goals and serve various purposes. Almost every free Android application published on store has advertisements embedded in it, which makes use of external components to achieve it. Incorporating advertisements in the Android application is a vital aspect of today's application development. In this chapter, we will continue on our DistanceConverter application developed from the previous chapters, and make use of an external library, AdMob
, to incorporate advertisements in our application. The coverage will include the following:
- Creating an account at the
AdMob
site - Adding Site/Application
- Adding the Advertisement Meditation Network
- Adding
AdMob
in the application - Making changes in the manifest file
- Adding the
AdMob
widget/view in the layout file - Running the application