Add ads to Windows Phone 8 game

0 favourites
  • 7 posts
From the Asset Store
Customize the animation of character when item changed
  • Hi all,

    Is there anyone here have experiences with visual studio? I'm trying to integrate AdDuplex to my game. Here is the except from their document:

    2. Add a namespace declaration to your Page

                  

    xmlns:adduplex="clr-namespace:AdDuplex;assembly=AdDuplex.WindowsPhone"

                  

                

    3. Add AdControl to your page:

                  

    <adduplex:AdControl x:Name="adDuplexAd"

                        AppId="YOUR_AppId_HERE"

                        />

    I have added the line in step 2 to the MainPage.xaml file, but I'm not sure where to put the ad control element since the layout root only contains the phone:WebBrowser.

    Thanks for helping me :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well, I have answered my own question. It's quite easy. For anyone looking for this in the future:

    <Grid x:Name="LayoutRoot" Background="Transparent">

            <phone:WebBrowser x:Name="Browser"

                              HorizontalAlignment="Stretch"

                              VerticalAlignment="Stretch"

                              Loaded="Browser_Loaded"

                              ScriptNotify="Browser_ScriptNotify"

                              NavigationFailed="Browser_NavigationFailed" />

            <adduplex:AdControl x:Name="adDuplexAd"

                        AppId="your app id" Margin="163,0,157,400" IsTest="True"

                        />

        </Grid>

  • Any chance of making a tutorial out of this?

  • bon4ire the tutorial is in the second post

  • Ah ok, so the code was placed within the block. Didn't catch it for some reason.

  • Can you help me with adding MS PubCenter advertising in my WP project?

    thanks maybe with a tutorial!

  • I'm done w/ my game... I've exported it out Windows (Universal app)... opened it in VS 2013, updated the Package Manifest, etc. But, I don't see any XAML files that can be modified w/ your example code in post 2 above... am I missing something? I only see a few .js files and html files. I'm trying to figure out how to put in the Windows Phone 8.1 ad banner to my game as well. After that, it can be published to the Windows Phone Store.

    Thanks,

    Stephen

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)