Skip to content

Google Publisher Tag Control for Universal Windows Platform (UWP)

License

Notifications You must be signed in to change notification settings

ptedeschi/GooglePublisherTag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Publisher Tag

Google Publisher Tag Control for Universal Windows Platform (UWP)

Description

Due to the lack of an SDK to handle Google Advertising inside an Universal Windows Platform (UWP) app, this library makes use of Google Publisher Tag by using the HTML and JavaScript code inside a control called TagControl.

Install

To install Google Publisher Tag for UWP, run the following command in the Package Manager Console:

PM > Install-Package GooglePublisherTag

Code

When using Google Publisher Tag, your XAML file should look like this:

<Page
    x:Class="GooglePublisherTagSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:GooglePublisherTagSample"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="using:GooglePublisherTag"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <controls:TagControl x:Name="MyTagControl" Tag="/1234/travel/asia/food" Width="728" Height="90"/>
    </Grid>
</Page>

About

Google Publisher Tag Control for Universal Windows Platform (UWP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published