[Plugin] Advertising in Windows Store App

Post your completed addons to share with the community

Post » Thu May 23, 2013 4:15 am

TL;DR
If you've got a Personal or Business license for Construct 2, you can start monetizing with pubCenter ads. Youll 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

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


Installation
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.

Tutorial

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.


Export to Windows 8
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 dont see the SDK, you havent installed it yet or you may need to restart Visual Studio. Click OK to add the reference to your solution.

After youve added the reference, youll need to add this line to your index.html just below the base.js and ui.js references:

<script src="///MSAdvertisingJS/ads/ad.js"></script>

Youll 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 its 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, youll need to use Test Mode values.

Your last step is to update the privacy.html file and submit to the store! Dont forget youll also need to include your privacy policy available from a publicly available website.

Known issues / To-do items

    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
B
3
Posts: 5
Reputation: 212

Post » Thu May 23, 2013 4:23 am

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!
B
3
Posts: 5
Reputation: 212

Post » Thu May 23, 2013 9:33 am

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......
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Thu May 23, 2013 2:02 pm

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.
B
3
Posts: 5
Reputation: 212

Post » Thu May 23, 2013 2:12 pm

@atxryan does it work with Windows phone 8 project exported by Construct 2?
B
12
S
4
G
1
Posts: 104
Reputation: 1,512

Post » Thu May 23, 2013 5:04 pm

@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.
B
3
Posts: 5
Reputation: 212

Post » Thu May 23, 2013 6:23 pm

@atxryan this looks great! I starting building something similar but this is much better!
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sat May 25, 2013 2:33 am

Oh man I'm so excited to have found something like this. You sir, are amazing.
B
13
S
3
G
2
Posts: 51
Reputation: 2,255

Post » Tue Jun 04, 2013 7:19 pm

Nice plugin @atxryan
Really good opportunity for monetizing our freemium games with Ads :)
Enlik Tjioe
Game Programmer

Image

www.touchten.com
B
45
S
11
G
6
Posts: 176
Reputation: 7,289

Post » Sat Jul 06, 2013 2:01 am

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....
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests