How do I use ads in Win10 universal apps

Get help using Construct 2

Post » Sun Jan 24, 2016 9:38 am

Hi! I exported my app from Construct 2 and installed the Ad SDK for Visual Studio but when I preview the app I get this error:

APPHOST9623: "ms-appx://xxxxxxx-soft.xxxappname/Microsoft.Advertising.JavaScript/ad.js" konnte von der App aufgrund des folgenden Fehlers nicht aufgelöst werden: DATA_NOT_AVAILABLE.

I tried to enable the ad SDK (was disabled by default) in Visual Studio but it shows the same error. Even when I move the "Show Banner" action on the second layout the error appears immediately when the preview in visual studio starts.

Does anyone know how to fix this? :(


PS: Is it possible to use the same banner sizes from PC/Tablet on Mobile since you cant add 2 PubCenter objects for mobile and pc/tablet (they have different banner sizes).
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
17
G
6
Posts: 748
Reputation: 9,420

Post » Sun Apr 17, 2016 12:51 pm

Hi. I managed to get an ad now (with added reference to Win10 Ad SDK) and I need to select X64 or X86 for testing to see an ad. But the shown banner has the wrong size. I selected 728x90 and OnStartofLayout > Bottom Center on title screen but it shows a tiny 90x700 banner in the placeholder and white background on the sides. Does it work for everyone else or is there something broken with pubcenter plugin?
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
17
G
6
Posts: 748
Reputation: 9,420

Post » Sun Apr 24, 2016 8:21 am

And this warnings are shown when creating the app packages:
1>------ Build started: Project: LostFalconAssault, Configuration: Release x86 ------
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2049,5): warning MSB3842: Project "LostFalconAssault" depends upon SDK "Microsoft Advertising SDK for JavaScript v10.0" which supports apps targeting "UAP 10.0". To verify whether "Microsoft Advertising SDK for JavaScript v10.0" is compatible with "UAP 10.0.10240.0", contact the SDK author or see http://go.microsoft.com/fwlink/?LinkID=309181.
1>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(2049,5): warning MSB3842: Project "LostFalconAssault" depends upon SDK "Visual C++ 2015 Runtime for Universal Windows Platform Apps v14.0" which supports apps targeting "UAP 10.0". To verify whether "Visual C++ 2015 Runtime for Universal Windows Platform Apps v14.0" is compatible with "UAP 10.0.10240.0", contact the SDK author or see http://go.microsoft.com/fwlink/?LinkID=309181.

Can I just ignore them or could it cause problems?
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
17
G
6
Posts: 748
Reputation: 9,420

Post » Sat Apr 30, 2016 2:11 pm

Hi i have the same problem , the ads dont even show on my game exported to Visual Studio 2015
B
5
Posts: 2
Reputation: 231


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests