How to create Microsoft-Advertisement-on-App in C#

How to create  Microsoft-Advertisement-on-App with Xaml

  1. You can add Microsoft advertisement on your app if you are sending it to app store and you will want your user to make use of the app free while advert its runing on it.
  2. But user that upgrade by paying some little cents will have the app runing without advert.

Get access to Microsoft Advertisement Code on Github

Codes and screenshort below:

Code for MainPage.xaml
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Universal:AdMediatorControl x:Name="
AdMediator_3E8C7E" HorizontalAlignment=
"Left" Height="250" Id="AdMediator-Id-0585DBBD-0695-4116-86CF-8AEA59BD21F1" VerticalAlignment="Top" Width="300"/>

Code within MainPage.xaml.cs
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template // is documented at
namespace MicrosoftAdvertsementOnApp
public sealed partial class MainPage : Page
public MainPage()
Screenshort of Microsoft Advertisement runing on App:

No comments:

Post a comment

Note: only a member of this blog may post a comment.

New Post

How to use Interactive Console to store data into database

In this tutorial, I will briefly write on how to use the Interactive Console in PyCharm to add data into a database. Let us use the model...