Last active
April 19, 2018 02:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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