This project is read-only.

Advertising not working on Windows 10 JavaScript Sample

Topics: Windows 10 UWP
Oct 23, 2015 at 6:20 PM
I'm having a problem which prevents me from playing ads on Windows 10.
I've opened the JS sample project and when I run it I see a lot of JS errors in the console saying that it can't resolve files from playerframework. Here are two of the many lines I'm seeing:
APPHOST9623: The app couldn’t resolve ms-appx://c5bb4344-dc39-4e97-8aa1-57d4e71cc40c/Microsoft.PlayerFramework.Js.Advertising/js/Advertisement.js because of this error: DATA_NOT_AVAILABLE.
APPHOST9623: The app couldn’t resolve ms-appx://c5bb4344-dc39-4e97-8aa1-57d4e71cc40c/Microsoft.PlayerFramework.Js.TimedText/js/CaptionsPlugin.js because of this error: DATA_NOT_AVAILABLE.
Despite the errors, captions still work well when trying the sample project but whenever I try to select any ad sample the application crashes:
var prerollAd = new PlayerFramework.Advertising.PrerollAdvertisement();

Unable to get property 'PrerollAdvertisement' of undefined or null reference
What am I missing to be able to play ads correctly?

Oct 26, 2015 at 4:58 PM
Which page specifically? VAST, Mast, FreeWheel, all of them? Also, which build of Windows 10 are you running?
Oct 27, 2015 at 5:29 AM
All the pages that have ads give me that same error.
Windows 10 build is: 10240
Oct 27, 2015 at 3:43 PM
Just updated the sample app. Please give it a try:
Marked as answer by RikSabino on 10/27/2015 at 6:36 PM
Oct 27, 2015 at 4:39 PM
Thanks! It's working in that version.
Oct 27, 2015 at 7:04 PM
Glad to hear it!