{"id":3076,"date":"2021-02-19T16:53:09","date_gmt":"2021-02-19T16:53:09","guid":{"rendered":"https:\/\/serkanseker.com\/?p=3076"},"modified":"2021-04-08T11:47:14","modified_gmt":"2021-04-08T11:47:14","slug":"xamarin-forms-admob-interstitial-banner-awarded-ads","status":"publish","type":"post","link":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/","title":{"rendered":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads"},"content":{"rendered":"\n<p>It is possible to earn money by adding <strong>AdMob <\/strong>ads to your Xamarin.Forms applications. However, to do this, you must first create Dependecy classes for each ad unit on native platforms and then call these classes in Xamarin.Forms. This brings many workloads.<\/p>\n\n\n\n<p>However, there is no need to try that much. Using the MTAdmob plugin, you can show AdMob ads in your Xamarin.Forms applications with a few lines of code. So you don&#8217;t waste time creating individual Dependency classes.<\/p>\n\n\n\n<p>MTAdmob plugin is a NuGet package developed by <a href=\"https:\/\/www.nuget.org\/profiles\/marcojak\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Marco Troncone<\/a>. This plugin allows you to show AdMob ads to your Xamarin projects with just a few lines of code. You can examine plugin <a href=\"https:\/\/github.com\/marcojak\/MTAdmob\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p>In this article, I will explain how to place AdMob ads in your Xamarin.Forms applications using the MTAdmob plugin. <\/p>\n\n\n\n<p>So, let&#8217;s started. Follow the steps below in order.<\/p>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-description\"><\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1613901051781\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#step-1\">Install the MTAdmob plugin in your project<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1613901064216\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#step-2\">Add the AdMob application ID to your project<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1613901084479\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#step-3\">Initialize the MTAdmob plugin<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1613901093800\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#step-4\">Add interstitial and rewarded ad to your app<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1613901105844\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#step-5\">Replace test ads with your own<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1613901108344\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#step-6\">Replace test ads with your own<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1613901849249\"><strong class=\"schema-how-to-step-name\"><a href=\"https:\/\/serkanseker.com\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#conclusion\">Conclusion<\/a><\/strong> <p class=\"schema-how-to-step-text\"><\/p> <\/li><\/ol><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1\">1) Install the MTAdmob plugin in your project<\/h2>\n\n\n\n<p>First, install the MarcTron.Admob NuGet package in your Xamarin.Forms project.<\/p>\n\n\n\n<p>Type the following code in the Package Manager Console and run it. (<a href=\"https:\/\/serkanseker.com\/install-and-manage-nuget-packages\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Manage NuGet Packages<\/a>)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-Package MarcTron.Admob -Version 1.6.1\n<\/code><\/pre>\n\n\n\n<p>Alternatively, you can install this plugin from NuGet Package Manager. (<a href=\"https:\/\/serkanseker.com\/install-and-manage-nuget-packages\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Manage NuGet Packages<\/a>)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-MarcTron-AdMob-NuGet-Package.jpg\" alt=\"Xamarin.Forms MarcTron AdMob NuGet Package\" class=\"wp-image-3077\"\/><figcaption>Install the MarcTron.AdMob plugin to your project<\/figcaption><\/figure>\n\n\n\n<p>After the plugin is installed, a readme.txt file will open, which includes warnings about this plugin and how to use the plugin. In this file, you can review the notes and instructions on the versions of the plugin.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-MarcTron-AdMob-NuGet-Package-ReadMe.jpg\" alt=\"Xamarin.Forms MarcTron AdMob NuGet Package ReadMe\" class=\"wp-image-3078\"\/><figcaption>You can view warnings and instructions in the readme.txt file.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2\">2) Add the AdMob application ID to your project<\/h2>\n\n\n\n<p>In order to show AdMob ads in your application, you must add the application ID you get from your AdMob account to your project. However, if the application is not completed yet, it is useful to use test ads instead of your own ads.<\/p>\n\n\n\n<p>Because you can check whether the ads are working properly by clicking the test ads while the application is in the development phase. If you click your own ads too many times without being in test mode, your AdMob account may be restricted due to invalid clicks.<\/p>\n\n\n\n<p>After the implementation is complete, replace the test ads with the ad units you create from your AdMob account.<\/p>\n\n\n\n<p>Use <a href=\"https:\/\/developers.google.com\/admob\/android\/test-ads\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">test ad units<\/a> and IDs provided by Google to enable test ads. Since these ad units are not associated with your AdMob account, there is no risk of your account generating invalid traffic when using these ad units.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>App ID for Android ca-app-pub-3940256099942544 ~ 3347511713<\/li><li><span style=\"color: var(--nv-text-color); font-family: Roboto, var(--nv-fallback-ff); letter-spacing: 0px; background-color: var(--nv-site-bg);\">App ID for iOS ca-app-pub-3940256099942544 ~ 1458002511<\/span><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Banner  ca-app-pub-3940256099942544\/6300978111<\/li><li>Interstitial  ca-app-pub-3940256099942544\/1033173712<\/li><li>Rewarded  ca-app-pub-3940256099942544\/5224354917<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Android<\/h3>\n\n\n\n<p>Open the <strong>Android\/Properties\/AndroidManifest.xml <\/strong>file in your project. Then add your application ID between <strong>&lt;application&gt;<\/strong> tags.<\/p>\n\n\n\n<p>To display test ads here, first add the app ID provided by Google instead of your own app ID. After testing the application, replace the application ID you create from your AdMob account with the test ID.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n&lt;manifest xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot; android:versionCode=&quot;1&quot; android:versionName=&quot;1.0&quot; package=&quot;com.companyname.weather&quot;&gt;\n\t&lt;uses-sdk android:minSdkVersion=&quot;21&quot; android:targetSdkVersion=&quot;29&quot; \/&gt;\n\t&lt;application android:label=&quot;Weather.Android&quot;&gt;\n\t\t&lt;meta-data android:name=&quot;com.google.android.gms.ads.APPLICATION_ID&quot;\n           android:value=&quot;ca-app-pub-3940256099942544~3347511713&quot;\/&gt;\n\t&lt;\/application&gt;\n\t&lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; \/&gt;\n&lt;\/manifest&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">iOS<\/h3>\n\n\n\n<p>Right-click on the <strong>Info.plist<\/strong> file in your app&#8217;s iOS folder and select <strong>Open With<\/strong>. Then choose <strong>XML (Text) Editor<\/strong> in the window that opens.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-iOS-info-plist-Open-With-XML-Text-Editor.jpg\" alt=\"Xamarin.iOS info plist Open With XML Text Editor\" class=\"wp-image-3080\"\/><figcaption>Open the Info.plist file with the XML Text Editor<\/figcaption><\/figure><\/div>\n\n\n\n<p>Then add your app ID between the <strong>&lt;dict&gt;<\/strong> tags in the Info.plist file.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&lt;key&gt;GADApplicationIdentifier&lt;\/key&gt;\n&lt;string&gt;ca-app-pub-3940256099942544~1458002511&lt;\/string&gt;\n&lt;key&gt;GADIsAdManagerApp&lt;\/key&gt;\n&lt;true\/&gt;<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-iOS-info-plist-add-AdMob-application-id.jpg\" alt=\"Xamarin.iOS info plist add AdMob application id\" class=\"wp-image-3081\"\/><figcaption>Add your application ID to the info.plist file<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3\">3) Initialize the MTAdmob plugin<\/h2>\n\n\n\n<p>To use the MTAdmob plugin in your Xamarin.Forms project, you must initialize this plugin on each platform.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Android<\/h3>\n\n\n\n<p>Call the <strong>Initialize()<\/strong> method of the MTAdmob plugin inside the <strong>onCreate()<\/strong> method of the <strong>MainActivity.cs class<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-csharp\">protected override void OnCreate(Bundle savedInstanceState)\n{\n    \/\/ Your other codes\n    global::Xamarin.Forms.Forms.Init(this, savedInstanceState);\n    \/\/Call the initialize method of MTAdmob plugin\n    MobileAds.Initialize(ApplicationContext);\n    LoadApplication(new App());\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">iOS<\/h3>\n\n\n\n<p>Go to <strong>AppDelegate.cs<\/strong> class to launch MTAdmob plugin on iOS platform. Then call the initiator method inside the <strong>FinishedLaunching()<\/strong> method. So every time the AppDelegate class runs, the MTAdmob plugin will start.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-csharp\">public override bool FinishedLaunching(UIApplication app, NSDictionary options)\n{\n    global::Xamarin.Forms.Forms.Init();\n    \n    MobileAds.Configure(&quot;ca-app-pub-3940256099942544~1458002511&quot;);\n    LoadApplication(new App());\n    return base.FinishedLaunching(app, options);\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-4\">4) Add banner ad to your app<\/h2>\n\n\n\n<p>After initialize the plugin, you can now add ads to your app.<\/p>\n\n\n\n<p>I will first add the banner ad and then the interstitial and rewarded ad units to this sample project.<\/p>\n\n\n\n<p><span style=\"color: var(--nv-primary-accent);background-color: var(--nv-light-bg)\" class=\"ugb-highlight\">1<\/span> Now add a new ContentPage to your project named <strong>AdMobPage.xaml<\/strong>.<\/p>\n\n\n\n<p><span style=\"color: var(--nv-primary-accent);background-color: var(--nv-light-bg)\" class=\"ugb-highlight\">2<\/span> Then add the required <strong>namespace <\/strong>to the ContentPage definition in order to use the MTAdmob plugin in XAML.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">xmlns:controls=&quot;clr-namespace:MarcTron.Plugin.Controls;assembly=Plugin.MtAdmob&quot;<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-Content-Page-MTAdmob-Namespace.jpg\" alt=\"Xamarin.Forms Content Page MTAdmob Namespace\" class=\"wp-image-3082\"\/><figcaption>Add XAML namespace<\/figcaption><\/figure><\/div>\n\n\n\n<p><span style=\"color: var(--nv-primary-accent);background-color: var(--nv-light-bg)\" class=\"ugb-highlight\">3<\/span> Then add the AdMob banner ad in ContentPage as follows.<\/p>\n\n\n\n<p>Note that I have included a test ad ID for Android and iOS platforms separately here. Because an ad unit has different ad IDs for Android and iOS platforms.<\/p>\n\n\n\n<p><span style=\"color: #222222;background-color: var(--nv-light-bg)\" class=\"ugb-highlight\">If your ads are not visible, set the HeightRequest value.<\/span><\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;\n&lt;ContentPage xmlns=&quot;http:\/\/xamarin.com\/schemas\/2014\/forms&quot;\n             xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2009\/xaml&quot;\n             xmlns:controls=&quot;clr-namespace:MarcTron.Plugin.Controls;assembly=Plugin.MtAdmob&quot;\n             x:Class=&quot;Weather.View.AdMobPage&quot;&gt;\n    &lt;ContentPage.Content&gt;\n        &lt;StackLayout&gt;\n            &lt;Label Text=&quot;Welcome to Xamarin.Forms!&quot;\n                VerticalOptions=&quot;CenterAndExpand&quot; \n                HorizontalOptions=&quot;CenterAndExpand&quot; \/&gt;\n\n            &lt;controls:MTAdView x:Name=&quot;myAds&quot; \n                               AdsId=&quot;{OnPlatform Android=&#039;ca-app-pub-3940256099942544\/6300978111&#039;, \n                                                  iOS=&#039;ca-app-pub-3940256099942544\/2934735716&#039;}&quot;\n                               HeightRequest=&quot;50&quot;\/&gt;\n            \n        &lt;\/StackLayout&gt;\n    &lt;\/ContentPage.Content&gt;\n&lt;\/ContentPage&gt;<\/code><\/pre>\n\n\n\n<p>Run the application and check if the test ad appears.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Banner-Ad-473x1024.jpg\" alt=\"Xamarin.Forms AdMob Banner Ad\" class=\"wp-image-3083\" width=\"237\" height=\"512\"\/><figcaption>Xamarin.Forms AdMob Banner Ad<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-5\">5) Add interstitial and rewarded ad to your app<\/h2>\n\n\n\n<p><span style=\"color: var(--nv-primary-accent);background-color: var(--nv-light-bg)\" class=\"ugb-highlight\">1<\/span> Now add two buttons named Interstitial and Rewarded into <strong>AdMobPage.xaml<\/strong> and define the Clicked events of these buttons.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-markup\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;\n&lt;ContentPage xmlns=&quot;http:\/\/xamarin.com\/schemas\/2014\/forms&quot;\n             xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2009\/xaml&quot;\n             xmlns:controls=&quot;clr-namespace:MarcTron.Plugin.Controls;assembly=Plugin.MtAdmob&quot;\n             x:Class=&quot;Weather.View.AdMobPage&quot;&gt;\n    &lt;ContentPage.Content&gt;\n        &lt;StackLayout&gt;\n            &lt;Label Text=&quot;Welcome to Xamarin.Forms!&quot;\n                VerticalOptions=&quot;CenterAndExpand&quot; \n                HorizontalOptions=&quot;CenterAndExpand&quot; \/&gt;\n            \n            &lt;Button Text=&quot;Interstitial&quot; Clicked=&quot;Interstitial_Clicked&quot;\/&gt;\n            &lt;Button Text=&quot;Rewarded&quot; Clicked=&quot;Rewarded_Clicked&quot;\/&gt;\n            \n            &lt;controls:MTAdView x:Name=&quot;myAds&quot; \n                               AdsId=&quot;{OnPlatform Android=&#039;ca-app-pub-3940256099942544\/6300978111&#039;, \n                                                  iOS=&#039;ca-app-pub-3940256099942544\/2934735716&#039;}&quot;\n                               HeightRequest=&quot;50&quot;\/&gt;\n            \n        &lt;\/StackLayout&gt;\n    &lt;\/ContentPage.Content&gt;\n&lt;\/ContentPage&gt;<\/code><\/pre>\n\n\n\n<p><span style=\"color: var(--nv-primary-accent);background-color: var(--nv-light-bg)\" class=\"ugb-highlight\">2<\/span> Then go to <strong>AdMobPage.xaml.cs<\/strong> class and fill in Clicked methods and constructor method as below. Include the test ad ID separately for interstitial and rewarded ad.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-csharp\">public partial class AdMobPage : ContentPage\n{\n    public AdMobPage()\n    {\n        InitializeComponent();\n        CrossMTAdmob.Current.OnInterstitialLoaded += (s, args) =&gt; {\n            CrossMTAdmob.Current.ShowInterstitial();\n        };\n        CrossMTAdmob.Current.OnRewardedVideoAdLoaded += (s, args) =&gt; {\n            CrossMTAdmob.Current.ShowRewardedVideo();\n        };\n    }\n    private void Interstitial_Clicked(object sender, EventArgs e)\n    {\n        CrossMTAdmob.Current.LoadInterstitial(&quot;ca-app-pub-3940256099942544\/1033173712&quot;);\n    }\n    private void Rewarded_Clicked(object sender, EventArgs e)\n    {\n        CrossMTAdmob.Current.LoadRewardedVideo(&quot;ca-app-pub-3940256099942544\/5224354917&quot;);\n    }\n}<\/code><\/pre>\n\n\n\n<p>When you click the Interstitial button here, the interstitial ad is loaded. Then the advertisement is displayed when the OnInterstitialLoaded event handler in the constructor method is triggered. So, first, by clicking the button, you upload the ad. Then the event handler is triggered as soon as the ad is loaded and the ad starts to appear. The rewarded button works in the same way.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/serkanseker.com\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-interstitial-ad.gif\" alt=\"Xamarin.Forms AdMob interstitial ad\" class=\"wp-image-3084\" width=\"295\" height=\"640\"\/><figcaption>Xamarin.Forms AdMob interstitial ad<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-6\">6) Replace test ads with your own<\/h2>\n\n\n\n<p>After you&#8217;ve tested the ads in your app, replace the test ads IDs with your own.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>In this article, I explained how to place AdMob ads in your Xamarin.Forms applications using the MTAdmob plugin. I hope it was useful.<\/p>\n\n\n\n<p>If you\u2019re still not sure what to do, or if you got any errors, then I suggest you use the comment section below and let me know! I am here to help!<\/p>\n\n\n\n<p><strong>Also, share this blog post on social media and help more people learn.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to earn money by adding AdMob ads to your Xamarin.Forms applications. However, to do this, you must first create Dependecy classes for each ad unit on native platforms and then call these classes in Xamarin.Forms. Using the MTAdmob plugin, you can show AdMob ads in your Xamarin.Forms applications with a few lines of code.<\/p>\n","protected":false},"author":1,"featured_media":260,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[572,21,39],"tags":[570,4,5],"class_list":["post-3076","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nuget","category-xamarin","category-xamarin-forms","tag-nuget","tag-xamarin","tag-xamarin-forms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Xamarin.Forms AdMob Interstitial Banner Awarded Ads - Serkan Seker TR<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Xamarin.Forms AdMob Interstitial Banner Awarded Ads - Serkan Seker TR\" \/>\n<meta property=\"og:description\" content=\"It is possible to earn money by adding AdMob ads to your Xamarin.Forms applications. However, to do this, you must first create Dependecy classes for each ad unit on native platforms and then call these classes in Xamarin.Forms. Using the MTAdmob plugin, you can show AdMob ads in your Xamarin.Forms applications with a few lines of code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/\" \/>\n<meta property=\"og:site_name\" content=\"Serkan Seker TR\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-19T16:53:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-08T11:47:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1\" \/>\n\t<meta property=\"og:image:height\" content=\"1\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"serkanadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"serkanadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/\"},\"author\":{\"name\":\"serkanadmin\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\"},\"headline\":\"Xamarin.Forms AdMob Interstitial Banner Awarded Ads\",\"datePublished\":\"2021-02-19T16:53:09+00:00\",\"dateModified\":\"2021-04-08T11:47:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/\"},\"wordCount\":1022,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg\",\"keywords\":[\"NuGet\",\"xamarin\",\"xamarin.forms\"],\"articleSection\":[\"NuGet\",\"Xamarin\",\"Xamarin.Forms\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/\",\"name\":\"Xamarin.Forms AdMob Interstitial Banner Awarded Ads - Serkan Seker TR\",\"isPartOf\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg\",\"datePublished\":\"2021-02-19T16:53:09+00:00\",\"dateModified\":\"2021-04-08T11:47:14+00:00\",\"author\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\"},\"breadcrumb\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage\",\"url\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg\",\"contentUrl\":\"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/serkanseker.com\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Xamarin.Forms AdMob Interstitial Banner Awarded Ads\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#website\",\"url\":\"https:\/\/serkanseker.com\/tr\/\",\"name\":\"Serkan Seker TR\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/serkanseker.com\/tr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5\",\"name\":\"serkanadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g\",\"caption\":\"serkanadmin\"},\"sameAs\":[\"https:\/\/serkanseker.com\"],\"url\":\"https:\/\/serkanseker.com\/tr\/author\/serkanadmin\/\"},{\"@type\":\"HowTo\",\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#howto-1\",\"name\":\"Xamarin.Forms AdMob Interstitial Banner Awarded Ads\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#article\"},\"description\":\"\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901051781\",\"text\":\"Install the MTAdmob plugin in your project\"},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901064216\",\"text\":\"Add the AdMob application ID to your project\"},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901084479\",\"text\":\"Initialize the MTAdmob plugin\"},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901093800\",\"text\":\"Add interstitial and rewarded ad to your app\"},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901105844\",\"text\":\"Replace test ads with your own\"},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901108344\",\"text\":\"Replace test ads with your own\"},{\"@type\":\"HowToStep\",\"url\":\"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901849249\",\"text\":\"Conclusion\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads - Serkan Seker TR","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads - Serkan Seker TR","og_description":"It is possible to earn money by adding AdMob ads to your Xamarin.Forms applications. However, to do this, you must first create Dependecy classes for each ad unit on native platforms and then call these classes in Xamarin.Forms. Using the MTAdmob plugin, you can show AdMob ads in your Xamarin.Forms applications with a few lines of code.","og_url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/","og_site_name":"Serkan Seker TR","article_published_time":"2021-02-19T16:53:09+00:00","article_modified_time":"2021-04-08T11:47:14+00:00","og_image":[{"url":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg","width":1,"height":1,"type":"image\/jpeg"}],"author":"serkanadmin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"serkanadmin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#article","isPartOf":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/"},"author":{"name":"serkanadmin","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5"},"headline":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads","datePublished":"2021-02-19T16:53:09+00:00","dateModified":"2021-04-08T11:47:14+00:00","mainEntityOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/"},"wordCount":1022,"commentCount":0,"image":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage"},"thumbnailUrl":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg","keywords":["NuGet","xamarin","xamarin.forms"],"articleSection":["NuGet","Xamarin","Xamarin.Forms"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/","name":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads - Serkan Seker TR","isPartOf":{"@id":"https:\/\/serkanseker.com\/tr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage"},"image":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage"},"thumbnailUrl":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg","datePublished":"2021-02-19T16:53:09+00:00","dateModified":"2021-04-08T11:47:14+00:00","author":{"@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5"},"breadcrumb":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#primaryimage","url":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg","contentUrl":"https:\/\/serkanseker.com\/tr\/wp-content\/uploads\/2021\/02\/Xamarin-Forms-AdMob-Interstitial-Banner-Awarded-Ads.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serkanseker.com\/tr\/"},{"@type":"ListItem","position":2,"name":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads"}]},{"@type":"WebSite","@id":"https:\/\/serkanseker.com\/tr\/#website","url":"https:\/\/serkanseker.com\/tr\/","name":"Serkan Seker TR","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serkanseker.com\/tr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/841fcc69b248e08e52c4190963caeaf5","name":"serkanadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serkanseker.com\/tr\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93ddc1f96117bf468976afe93a077eda77de96bcdb48dc749903598a546786a3?s=96&d=mm&r=g","caption":"serkanadmin"},"sameAs":["https:\/\/serkanseker.com"],"url":"https:\/\/serkanseker.com\/tr\/author\/serkanadmin\/"},{"@type":"HowTo","@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#howto-1","name":"Xamarin.Forms AdMob Interstitial Banner Awarded Ads","mainEntityOfPage":{"@id":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#article"},"description":"","step":[{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901051781","text":"Install the MTAdmob plugin in your project"},{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901064216","text":"Add the AdMob application ID to your project"},{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901084479","text":"Initialize the MTAdmob plugin"},{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901093800","text":"Add interstitial and rewarded ad to your app"},{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901105844","text":"Replace test ads with your own"},{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901108344","text":"Replace test ads with your own"},{"@type":"HowToStep","url":"https:\/\/serkanseker.com\/tr\/xamarin-forms-admob-interstitial-banner-awarded-ads\/#how-to-step-1613901849249","text":"Conclusion"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts\/3076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/comments?post=3076"}],"version-history":[{"count":0,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/posts\/3076\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/media\/260"}],"wp:attachment":[{"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/media?parent=3076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/categories?post=3076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serkanseker.com\/tr\/wp-json\/wp\/v2\/tags?post=3076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}