Skip to content

Acilec/Xamarinos.AdMob.FormsPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xamarinos.AdMob.FormsPlugin

AdMob Plugin for Xamarin.Forms

##Setup

###iOS

In your AppDelegate.cs add the following lines:

//Register AdBanner Control Renderer
AdBannerRenderer.Init ();

//Initialize Interstitial Manager with a Specific AdMob Key
CrossAdmobManager.Init (Strings.AdMobKey);

Android

In your MainActivity.cs on the "OnCreate" Method add the following lines:

//Register AdBanner Control Renderer
AdBannerRenderer.Init ();

//Initialize Interstitial Manager with a Specific AdMob Key
CrossAdmobManager.Init (Strings.AdMobKey);

##Usage

###Banner Control

var myBanner = new AdBanner();

//Set Your AdMob Key
myBanner.AdID = Strings.AdMobKey;

###Interstitial

await CrossAdmobManager.Current.Show ();

About

Admob plugin for Xamarin Forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%