Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Last active April 19, 2018 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/77325cc4069e780167d554cfe92516aa to your computer and use it in GitHub Desktop.
Save juucustodio/77325cc4069e780167d554cfe92516aa to your computer and use it in GitHub Desktop.
Example how to monetize yours Xamarin.Forms applications with AdMob by Google - http://julianocustodio.com/admob-xamarin-forms
using Xamarin.Forms;
namespace DemoAdMob
{
public class AdMobView : View
{
public static readonly BindableProperty AdUnitIdProperty = BindableProperty.Create(
nameof(AdUnitId),
typeof(string),
typeof(AdMobView),
string.Empty);
public string AdUnitId
{
get => (string)GetValue(AdUnitIdProperty);
set => SetValue(AdUnitIdProperty, value);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment