We're pleased to announce that the IMA HTML5 SDK now supports VPAID 2 JavaScript creatives. Enabling support is as easy as including the following line before initializing your AdDisplayContainer:
google.ima.settings.setVpaidAllowed(true); ... var adDisplayContainer = new google.ima.AdDisplayContainer(adContainerElement); var adsLoader = new google.ima.AdsLoader(adDisplayContainer);
There are two differences to be aware of between the VPAID 2 spec and the way the IMA SDK supports VPAID 2. These differences do not impact player or SDK implementation code, but they are important for VPAID 2 JavaScript creative authors, as creatives may throw errors or not work as expected when rendered by the IMA HTML5 SDK.
For more information, including a listing of what API methods are supported in the video player proxy element, check out our guide to VPAID 2 creatives.
As always, if you have any questions, feel free to contact us via the support forum.
- Bret McGowen, IMA SDK Team