IMA SDK Cannot Handle VAST response with both Flash and JS

401 views
Skip to first unread message

Oli Cundale

unread,
Feb 2, 2015, 6:37:33 AM2/2/15
to ima...@googlegroups.com
Hi, we recently updated our VAST response to return two linear Static Resources - one for the Flash and the other with the Javascript. Unfortunately the Google IMA does not check the StaticResource type and pick out the JS, it seems to just take the first StaticResource in the VAST response. As a result, we have noticed our javascript VPAID no longer loads within the IMA SDK.


Would you be able to update the IMA SDK to handle both types in the VAST response?

Thanks,

Oliver

Oli Cundale

unread,
Feb 5, 2015, 9:49:28 AM2/5/15
to ima...@googlegroups.com
Some more detail....
The Google IMA cannot currently handle a VAST response that contains both the Javascript and Flash creative links. However, VPAID compliant players I have tested with such as Kaltura can handle this without a problem. Also, LiveRail give both file types back in the VAST response for their Ad Manager, so I assume this is a VPAID compliant method. 
Here is an example of a VAST tag with both types:

<Creatives>
<Creative sequence="1" id="test">
<NonLinearAds>
<NonLinear id="test" apiFramework="VPAID">
<AdParameters>
<linear>false</linear>
</AdParameters>
<StaticResource creativeType="application/javascript">
</StaticResource>
<StaticResource creativeType="application/x-shockwave-flash">
</StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>

However, the Google IMA fails to load the creative unless you return just one static resource, as shown below:

<Creatives>
<Creative sequence="1" id="test">
<NonLinearAds>
<NonLinear id="test" apiFramework="VPAID">
<AdParameters>
<linear>false</linear>
</AdParameters>
<StaticResource creativeType="application/javascript">
</StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>


Should the IMA not be able to handle both StaticResource links in the VAST response and then pick the correct file type? 

Thanks,

Oliver 

Yury Pavlotsky (IMA SDK Team)

unread,
Apr 1, 2015, 4:02:40 PM4/1/15
to ima...@googlegroups.com
Hi Oliver,

This bug is fixed in the latest release. If you're still seeing this issue, please let us know.

Thanks,
Yury Pavlotsky
IMA SDK Team

Oli Cundale

unread,
Apr 10, 2015, 8:56:00 AM4/10/15
to ima...@googlegroups.com
Hi Yury, I have just re-tested using the VAST response with two NonLinear nodes and I'm afraid it still does not work.

This was using the Video Suite Inspector and I am assuming it should work here?

Thanks,

Oliver

Yury Pavlotsky (IMA SDK Team)

unread,
Apr 10, 2015, 5:21:26 PM4/10/15
to ima...@googlegroups.com
Hi Oliver,

Looks like we fixed the reverse bug on the Flash side, but it hasn't been fixed yet on the HTML5 side. It should be fixed soon.

Thanks,
Yury Pavlotsky
IMA SDK Team

Oli Cundale

unread,
Jul 17, 2015, 6:31:59 AM7/17/15
to ima...@googlegroups.com
Hi Yury- Just following up on this bug, as would like to see the HTML5 side fixed but it has been three months, so just wanted to check that you're still planning to release a fix.

Cheers,

Oli

Yury Pavlotsky (IMA SDK Team)

unread,
Jul 17, 2015, 4:51:14 PM7/17/15
to ima...@googlegroups.com, o...@coull.com
Hi Oliver,

We're still planning on releasing a fix, but I don't have an update on the timeframe for you. I'll check back with the rest of the team and follow up when I have an update.

Thanks,
Yury Pavlotsky
IMA SDK Team

Oli Cundale

unread,
Aug 5, 2016, 8:06:55 AM8/5/16
to Interactive Media Ads SDK, o...@coull.com
Hi guys, it's been a while- any update on this one?

Still seeing errors on a standard VPAID compliant response with both creative types.

Let me know if you need anymore info...

Thanks!

Binny Patel (IMA SDK Team)

unread,
Aug 9, 2016, 2:32:44 PM8/9/16
to Interactive Media Ads SDK, o...@coull.com
Hi Oliver,

A multi-StaticResources creative is not compliant with the IAB spec for non-linear ads, so the IMA SDK won't be able to support that. 

Thanks,
Binny Patel
IMA SDK Team

Oli Cundale

unread,
Aug 9, 2016, 2:56:25 PM8/9/16
to Interactive Media Ads SDK, o...@coull.com
Hi Binny, thanks for the reply. It is compliant with the IAB spec, though let me give you an example to demonstrate:

There are two NonLinear nodes and within each there is a StaticResource - one of each type (flash/js). eg:

<Creative id="12345" sequence="1">
<NonLinearAds>
<NonLinear id="" width="" height="" apiFramework="VPAID">
<StaticResource creativeType="application/x-shockwave-flash">
</StaticResource>
<AdParameters>
<linear>false</linear>
</AdParameters>
</NonLinear>
<NonLinear id="" width="" height="" apiFramework="VPAID">
<StaticResource creativeType="application/javascript">
</StaticResource>
<AdParameters>
<linear>false</linear>
</AdParameters>
</NonLinear>
</NonLinearAds>
</Creative>

Details can be found in the IAB documentation such as the VAST XML Schema. 

Please let me know when you might be able to add in this functionality. Happy to help with any further details if you need them!

Cheers :)

Binny Patel (IMA SDK Team)

unread,
Aug 9, 2016, 5:37:00 PM8/9/16
to Interactive Media Ads SDK, o...@coull.com
Hi Oliver,

Originally your use case had two different StaticResource types for the same nonlinear creative (which was against the IAB Spec). Now you have asked about having two different nonlinear creatives each with their own StaticResoruce. (This is supported by IAB Spec.)

I need some more details to investigate. Would be able to provide a working ad tag?


Thanks,
Binny Patel
IMA SDK Team

Oli Cundale

unread,
Aug 10, 2016, 9:34:01 AM8/10/16
to Interactive Media Ads SDK, o...@coull.com
Thanks Binny, here is a working ad tag that returns both creatives:

Appreciate the help! :)

Binny Patel (IMA SDK Team)

unread,
Aug 10, 2016, 4:23:58 PM8/10/16
to Interactive Media Ads SDK, o...@coull.com
Hi Oliver,

Thanks for the ad tag. We will get back to you once we have an update.

Binny Patel
IMA SDK Team

Shawn Busolits (IMA SDK Team)

unread,
Sep 2, 2016, 11:12:30 AM9/2/16
to Interactive Media Ads SDK, o...@coull.com
Hi Oliver,

I've been taking a look at this, and wanted to let you know what I've found.

The SDK selecting a Flash VPAID is not an issue here because we actually recently added support for Flash VPAID ads in the HTML5 SDK. What I'm seeing is we select the Flash VPAID and it has an internal error ("Ad error: AdError 901: An unexpected error occurred within the VPAID creative. Refer to the inner error for more info. Caused by: Error: Error: a is not a function"). We do not at this point attempt to play the JS VPAID because the SDK does not support asset-level fallback like this.

If you want the JS VPAID to play, you can either remove the Flash ad from the response, or move it below the JavaScript ad so the SDK sees the JavaScript ad first. I'm also working on getting support for VPAID types in adsRenderingSettings.mimeTypes so you can do this programmatically. If you have any questions let me know!

Thanks,
Shawn Busolits
IMA SDK Team

Oli Cundale

unread,
Sep 13, 2016, 6:27:26 AM9/13/16
to Interactive Media Ads SDK, o...@coull.com
Hi Shawn- thanks for taking a look - The error you mention is naturally going to happen with a flash creative being loaded when an HTML5 creative is expected- the 'getVPAIDAd' object is expected to be available as a javascript object,but obviously flash does not naturally return this. 

That is interesting that you have enabled loading of a Flash creative first and I appreciate there may be advantages to loading flash within an HTML5 player. However, we really want to stick within the VPAID specification and in this case, the player should load the creative with creativeType="application/javascript".

We will customise our VAST responses to return just the javascript creative in these cases for now, but we'd really appreciate it if you guys could update the IMA to be fully VPAID compliant at some point!

Thanks again for your help!

Carlos Castro

unread,
Oct 5, 2016, 2:47:24 PM10/5/16
to Interactive Media Ads SDK, o...@coull.com
Hi Shawn Are you planning on adding the Asset-Level Fallback to be able to handle both types of media files in the same response ?

Oli Cundale

unread,
Mar 1, 2017, 9:42:06 AM3/1/17
to Interactive Media Ads SDK, o...@coull.com
Any progress on this issue?

Chris Feldman (IMA SDK Team)

unread,
Mar 1, 2017, 10:23:11 AM3/1/17
to Interactive Media Ads SDK, o...@coull.com
Hi Oli,

The HTML5 SDK will now select JavaScript VPAID ads before Flash VPAID ads. We've also added a method that will allow you to disable all Flash ads if you choose, setDisableFlashAds().

@Carlos, I should also mention that asset level fallback is now live in the HTML5 SDK.

Please let me know if either of you have any questions.

Regards,
Chris Feldman
IMA SDK Team
Reply all
Reply to author
Forward
0 new messages