Installing the required SDKs

As you might have guessed, integrating advertisements in our applications is not part of the standard Android SDK, which came when you installed Xamarin, and we have to install some additional pieces. In this recipe, we'll see which ones.

Getting ready

To follow this recipe, you will need to have access to the Android SDK manager and the permissions to make new installations in your system.

How to do it...

In order to complete this recipe, you will have to follow these steps:

  1. Open the Android SDK Manager.
  2. Open the tool directory and install the Android SDK tools, Android SDK Platform-tools, and Android SDK Build-tools.
    How to do it...
  3. Open the latest version of Android and ensure that you select ARM EABI v7a System Image for the installation.
    How to do it...
  4. Open the Extra directory and select the Google repository and Google Play services for installation.
    How to do it...
  5. Click on Install packages… and you're done.

How it works...

AdMob used to have its own SDK that we, as developers, had to integrate inside our Android SDK and ship our application with some of the AdMob libraries for the ads to be displayed. Thanks to Google buying AdMob, all required materials are now part of the Android SDK, while not yet by default, and their integration is even easier. With the new packages we've installed, we are now ready to integrate our first ads. See how this is done on the next recipe.

See also

Refer to Installing ads in your applications recipe to integrate AdMob in your applications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.142.128