0 Favourites

[Plugin] Advertising in Windows Store App

  • TL;DR

    If you've got a Personal or Business license for Construct 2, you can start monetizing with pubCenter ads. You�ll need to create a pubCenter account and install the Microsoft Advertising SDK for Windows 8.

    Introduction w/ screenshots: http://ryanjoy.com/2013/05/introducing-a-windows-store-advertising-plugin-for-scirra-construct-2/

    Source: https://github.com/atxryan/Windows-8-Advertising-Scirra-Plugin

    =========================================================

    <font size="6">Installation</font>

    Download the .c2addon file from the GitHub project Plugin directory, then drag and drop the file in to the Construct 2 window. Construct 2 will prompt to ask if you want to install the addon. If you approve the install, you must restart Construct 2 before the addon becomes available.

    <font size="6">Tutorial</font>

    Add a Windows Store 8 Advertising object to your layout. If this is your first time using the plugin, I recommend leaving the values for size, Application ID, and Ad Unit ID as the defaults in order to test and understand the export process.

    http://ryanjoy.com/2013/05/introducing-a-windows-store-advertising-plugin-for-scirra-construct-2/

    <font size="4">Export to Windows 8</font>

    Read this tutorial if you need more info on exporting to Windows 8.

    Open the Visual Studio solution and right click on References in the Solution Explorer. Choose Add Reference� and check the Microsoft Advertising SDK for Windows 8 (JS). If you don�t see the SDK, you haven�t installed it yet or you may need to restart Visual Studio. Click OK to add the reference to your solution.

    After you�ve added the reference, you�ll need to add this line to your index.html just below the base.js and ui.js references:

    <font face="Courier New, Courier, mono"><script src="///MSAdvertisingJS/ads/ad.js"></script></font>

    You�ll also need to check the Internet (Client) capability in the solutions package.appxmanifest. Obviously your game will need to be able to access the internet if it�s going to show ads!

    Note: If you changed the default values for application or ad unit ID, you will not see your ad when you run or test the app. This is due to you using production values. Ads will not run in the simulator using these values to prevent abuse. If you want to see the test ads, you�ll need to use Test Mode values.

    Your last step is to update the privacy.html file and submit to the store! Don�t forget you�ll also need to include your privacy policy available from a publicly available website.

    <font size="6">Known issues / To-do items</font>

      Map all ad SDK events to C2 conditions Add lat/long coordinate support for localized advertising Add support for WP8

    See GitHub issues or add other on the project's issue's page: https://github.com/atxryan/Windows-8-Advertising-Scirra-Plugin/issues

  • Also, it goes without saying that I'm looking for any feedback on the plugin. Please let me know if you run into issues or if the instructions are not clear.

    Thank you!

  • Nice plugin! Thanks for taking your time to develop it.

    I have a suggestion. It would be great if Ad Rotator is supported (http://wp7adrotator.codeplex.com/), since adcenter only support limited countries. Using adrotator, you can still use pubCenter, and other ads from services like adduplex, NAX, admob......

  • Currently AdRotator only supports XNA/Silverlight projects, so it won't work for the Construct 2 Windows Store app exports. I do have an open issue to add in the necessary API structure to support future ad networks.

  • atxryan does it work with Windows phone 8 project exported by Construct 2?

  • tipztv Currently it does not. This is just for Windows Store apps at this time. I have WP8 support on my to-do list to add, but as thehen said he's adding support for ads to the Windows Phone plugin, I'll likely leave it to his plugin.

  • atxryan this looks great! I starting building something similar but this is much better!

  • Oh man I'm so excited to have found something like this. You sir, are amazing.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Nice plugin atxryan

    Really good opportunity for monetizing our freemium games with Ads :)

  • Going to try this in my next app. Thanks. Is it possible to use providers other than pubcenter? Or multiple providers if one isn't serving ads....

  • OMGOMGOMG! I wish I had found this two months ago! Thank you so much!

  • Hey Ateryan...thanks for this plugin. I'm having an issue with it in release 139. I'm enabling and disabling the ads inside an in app purchase. Would this cause the error I'm getting in the image?

    <img src="https://dl.dropboxusercontent.com/u/10196246/Capture.JPG" border="0" />

  • I'm managing to get this error quite consistently

    <img src="http://puu.sh/4ax7o.png" border="0" />

    Is it common? I'm pretty confident the error arises with this plugin too. Cheers. :)

  • atxryan

    Hi, can you add support for Adrotator ? I think it just add support for Windows 8 and Windows Phone 8.

    I think this would be important to people from country that PubCenter doesnt support.

    Thanks

  • Does anyone know if you make the object global, and destroy it in one layout, will it be destroyed in all the others?

    I'm getting this error when trying to destroy the object on an in app purchase:

    Unhandled exception at line 16526, column 3 in ms-appx://71c7dd4d-ebd1-4435-a4ed-6c93fb39025c/c2runtime.js

    0x800a1391 - JavaScript runtime error: 'MicrosoftNSJS' is undefined

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