O'Reilly logo

Xamarin Studio for Android Programming: A C# Cookbook by Mathieu Nayrolles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating advertisements in your applications

In this recipe we will leverage our AdMob account and the newly installed package to display some ads in our applications.

Getting ready

To follow this recipe, create a new solution named Ads.

How to do it...

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

  1. Right-click on the components folder of your solution and click on Get more components.
  2. Then, in the new window, search for Google Play Services and add it to your solution.
    How to do it...
  3. Ensure that the components have been added to your solution. It should look as follows:
  4. Add the following two lines to your AndroidManifest.xml file inside the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required