8.1 ads

Get help using Construct 2

Post » Fri May 23, 2014 8:32 pm

I know this isn't really a C2 "How to", but this seems the most logical place.

Has anyone figured out how to add ads to the new Universal app through VS2013? I can not for the life of me figure out how to put in an ad into my project. The old way was so simple and now I can't find a single mention of 8.1 ads outside of the "updates and extensions" window.
B
13
S
3
G
2
Posts: 45
Reputation: 2,308

Post » Tue May 27, 2014 2:12 pm

sha-bump
B
13
S
3
G
2
Posts: 45
Reputation: 2,308

Post » Tue May 27, 2014 3:39 pm

I have not done actually done this yet, but in theory when you export as universal app, you will get a VS project written in C# and XAML. From there, you can simply edit the XAML to put an ad control below the content of your game. You might have to do this for both of the different layouts (Win 8 and WP8) but the idea should be the same as how you did it before. Is that how you were doing it before?
B
5
Posts: 12
Reputation: 270

Post » Tue May 27, 2014 4:29 pm

Yes and no. I was using the mainpage.xaml, but I was just using the API to drag and drop the ad where I wanted it. Outside of that the code was foreign to me.
B
13
S
3
G
2
Posts: 45
Reputation: 2,308

Post » Wed May 28, 2014 11:12 am

i think there's still no ad network that support 8.1 yet. i used admob before, but now when i try to add googlead.dll reference it said that it's not supported.
B
3
Posts: 2
Reputation: 179

Post » Wed May 28, 2014 11:58 am

If anyone has the time you may want to try and dig into the windows 8 ads plugin and see if you can rig it to work with the new universal apps. That is what I used before the universal apps were released. It has all the plumbing to display Microsoft pubcenter ads. And it is a drag and drop control you just put in your layouts and then give it the ad ID from your pubcenter ads. It didn't work with WP apps, but it shouldn't be too much of a stretch to get it to work with them.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Wed May 28, 2014 2:42 pm

Something has gotta work cause the ad SDK for 8.1 is built into VS2013. Damn you MS for not making this easier!
B
13
S
3
G
2
Posts: 45
Reputation: 2,308

Post » Sat Jan 10, 2015 5:28 pm

There's unfortunately no current ADS SDK for Windows Phone 8.1 Projects written in Javascript. There is currently no way that I know of to get pubCenter ads working on a Windows Phone 8.1 project from Construct 2. Alternatively, you could export to Windows Phone 8 and take the route I explained above with editing the XAML mainpage. However, there is support for Windows 8.1 projects written in Javascript. With Windows 8.1, you can simply edit the HTML index page. Here are my posts on both of these scenarios.

Windows 8.1 http://blogs.msdn.com/b/quick_thoughts/ ... uct-2.aspx
Windows Phone 8 http://blogs.msdn.com/b/quick_thoughts/ ... uct-2.aspx
B
5
Posts: 12
Reputation: 270

Post » Tue Mar 03, 2015 1:44 pm

I tried to use the PubCenter Plugin for Win 8.1 Export but I cant see any ad when testing it (release/debug on local pc). I entered the 2 values from the PubCenter website into the plugin but why cant I see anything? :/
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
17
G
6
Posts: 748
Reputation: 9,420

Post » Tue Mar 03, 2015 2:24 pm

I found this in the error log in Visual Studio /edit: but it seems it appears with and without PubCenter: :?:

HTML1701: Der dynamische Inhalt "<select msallowclip=''><option selected=''></option></select>" kann nicht hinzugefügt werden. Von einem Skript wurde versucht, dynamischen Inhalt oder zuvor dynamisch geänderte Elemente einzuschleusen, die möglicherweise unsicher sind. Beispiel: Durch Hinzufügen eines Skriptelements oder von fehlerhaft formartiertem HTML mithilfe der innerHTML-Eigenschaft wird diese Ausnahme generiert. Mit der toStaticHTML-Methode können Sie dynamischen Inhalt filtern. Oder erstellen Sie Elemente und Attribute explizit mit einer Methode wie z. B. "createElement". Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=247104".
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
17
G
6
Posts: 748
Reputation: 9,420


Return to How do I....?

Who is online

Users browsing this forum: MrSheet and 27 guests