VPAID 2.0 Integration

894 views
Skip to first unread message

AWong

unread,
Jul 23, 2013, 10:54:33 AM7/23/13
to ima...@googlegroups.com
I downloaded the latest Flash SDK (3.0.71), but couldn't seem to get the new VPAID 2.0 features working.
Specifically AdEvent.INTERACTION and the skip function.

1)  AdEvent.INTERACTION
I've set up the handshake version to be 2.0 for the ad and my video player, added an event listener to AdsManager for AdEvent.INTERACTION.  However, when the interaction event is fired from the VPAID ad, the AdsManager doesn't seem to hear the event. I've also tested my ad in Google's Video Suite Inspector, and the INTERACTION event didn't trace out in the events box.  So I'm assuming that this isn't an issue caused by my video player.

2)  Skip function
The ad needs to have adSkippableState=true in order for the adsManager to skip the ad. How would I specify the adSkippableState property for the ad?  I tried implementing the get adSkippabeState() function to return true at all times, however, the state seems to remain as false when the ad gets loaded. 

3)  AdDurationChange and AdRemainingTimeChange
Whenever the AdDurationChange event is fired, the AdRemainingTimeChange listener hears the event and vice versa. Not sure why this is happening

4)  Does the Flash SDK support non-linear vpaid ads? 
I tried setting up a VAST file for a non-linear ad, static ads work fine, however, it doesn't seem to work as soon as I specified the apiFramework to be "VPAID".

Shawn Busolits (IMA SDK Team)

unread,
Jul 23, 2013, 3:58:16 PM7/23/13
to ima...@googlegroups.com
Hello,

I’ve answered your questions below, with a few questions of my own. Currently the Flash SDK only supports VPAID 1.0. We have a bit of scaffolding in place for 2.0, and some of that ended up in our documentation, though it shouldn’t have. We hope to have this supported soon, but we don't have a timeline for that yet. For more information on supported ad formats, check out the Video Features and SDK versions matrix.

1) AdEvent.INTERACTION
This is part of the scaffolding I mentioned earlier, which shouldn't have been included in the docs.

2) Skip function
The skippable state of an ad is set by the ad server, and can’t be changed by the SDK. You can use this API to determine if an ad is skippable or not, but that property will be set by the ad server.

3) AdDurationChange and AdRemainingTimeChange
This sounds odd - can you confirm that you have the right methods as event listeners on each event? If so, do you have some sample code you could send me that I could take a look at? I wrote up a quick test and I do see the proper event handlers being called when each event is fired.

4) Does the Flash SDK support non-linear VPAID ads?
Yes, the Flash SDK does support non-linear VPAID 1.0 ads. How are you serving your VAST file? Is it through an ad network, or are you creating your own static VAST XML file? You shouldn’t need to specify the apiFramework attribute - the SDK will fill this in for you based on the information in the VAST response.

Thanks,
Shawn Busolits
IMA SDK Team

AWong

unread,
Jul 23, 2013, 4:47:52 PM7/23/13
to ima...@googlegroups.com
Thank you for your response! 

1)  AdEvent.INTERACTION

Thanks for clarifying!

2)  Skip function 

I realize that I can use the API to read the skippable state of an ad.  Other than setting the skippable state on the ad server, is there a way to specify that in a static VAST xml file? I don't have a proper ad set up on the server, this is more for testing purposes at this stage.

3)  AdDurationChange and AdRemaingTimeChange

In the VPAID ad, I have:  
dispatchEvent( new VPAIDEvent( VPAIDEvent.AdRemainingTimeChange ) ) 
// where AdRemainingTimeChange:String = "AdRemainingTimeChange";

and in the video player, I have:
_adsManager.addEventListener( AdEvent.REMAINING_TIME_CHANGED, adRemainingTimeChangedHandler );
_adsManager.addEventListener( AdEvent.DURATION_CHANGED, adDurationChangedHandler );

Interestingly, the adDurationChangedHandler picks up the event, instead of adRemainingTimeChangedHandler.
"durationChanged" traces out, when I tested with the vast inspector.

4)  Support for non-linear VPAID ads - Ad duration
(I solved this partially, but bumped into another issue, which was posted as a separate post. I'll bring the question over to this post)

I'm using a static VAST XML file and managed to get the ad to get it to show up.  The issue I'm having now is that, the ad automatically disappears after 30 seconds.  I'm not sure where this 30 seconds duration came from, as this was not what was specified in the VAST XML nor in the VPAID ad's adDuration and adRemainingTime getter functions.  I tried editing the VAST xml file by adding a <Duration></Duration> tag and tried adding the "minSuggestedDuration" attribute to the <NonLinear> tag, either value have effect on the ad duration.  Please advice on how can I specify the non-linear ad's duration and how can I stop the timer when the user interacts with the ad?

Thanks again!

Shawn Busolits (IMA SDK Team)

unread,
Jul 25, 2013, 3:23:39 PM7/25/13
to ima...@googlegroups.com
Hello,

More questions and answers below:

2)
Skippable ads aren’t supported natively in VAST 2.0, so the SDK uses a custom extension to allow ads to be skipped. This feature is currently in a closed beta, but there is something you can do to test. You can add the following before the closing </InLine> tag of your VAST response to make the ad look like a DFP skippable ad:

<Extensions> ← only needed if your current VAST reponse doesn’t already have extensions
<Extension type="DFP">
<SkippableAdType>Generic</SkippableAdType>
<CustomTracking>
<Tracking event="skip">
<![CDATA[
]]>
</Tracking>
<Tracking event="skipShown">
<![CDATA[
]]>
</Tracking>
<Tracking event="engagedView">
<![CDATA[
]]>
</Tracking>
</CustomTracking>
</Extension>
</Extensions> ← same note as <Extension>

3)
This one I'll need to look into a bit more and get back to you.

4)

Thanks,
Shawn Busolits
IMA SDK Team

VASTNESS

unread,
Aug 1, 2013, 12:47:27 PM8/1/13
to ima...@googlegroups.com
According to the IAB, VAST 3 support is required to process VPAID 2.0 ads, but they are backward compatible with VPAID 1.0 ads. Are you saying that I can now process VPAID 2.0 ads with VAST 2 using a VAST 2 extension with your SDK. Which version of IMA SDK AS3 would I use to do that. ??


 

Shawn Busolits (IMA SDK Team)

unread,
Aug 5, 2013, 10:46:28 AM8/5/13
to ima...@googlegroups.com
Hi Angela,

The IMA Flash SDK only supports VAST 2.0 and VPAID 1.0. The extension used by the SDK is a proprietary DFP extension that just lets the SDK know that the ad is skippable (outside of the VAST 3 spec). The SDK does not yet support VAST 3 or VPAID 2.0. 

Thanks,
Shawn Busolits
IMA SDK Team

Arun Raj

unread,
Sep 13, 2013, 1:28:48 PM9/13/13
to ima...@googlegroups.com
Hello All,

Can anyone help me on integrating video ads in my flash videoplayer?
Actually i am pretty new to this ad technology and its integration.So any guidance to start me the ad integration ( both player side and ad management )are greatly appreciated.Even if I am comfortable in both  ActionScript and Javascript programing .

Thanks in Advance,
-Arun

Shawn Busolits (IMA SDK Team)

unread,
Sep 13, 2013, 2:47:29 PM9/13/13
to ima...@googlegroups.com
Hey Arun,

I'd recommend checking out our downloadable samples and following along on the working with ads page. If you have any specific questions after looking through those let me know! Also, in the future could you open a new thread for new questions?

Thanks!
Shawn Busolits
IMA SDK Team

Arun Raj

unread,
Sep 13, 2013, 3:38:30 PM9/13/13
to ima...@googlegroups.com
Thanks Shawn for the quick reply.
Of Course, i shall open a new thread regarding my questions if the provided links are not sufficient.
Let me read the links.
Thanks a lot,
-Arun 


--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/Cjqo8Ef2z54/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at http://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages