Google IMA HTML5 SDK: How to know if the current ad is a Flash VPAID

178 views
Skip to first unread message

Marko Ristic

unread,
Mar 8, 2016, 3:57:08 AM3/8/16
to Interactive Media Ads SDK
Hi everyone,

I was wandering if there is any way to know if the currently displayed ad is a Flash VPAID ad, when using IMA HTML5 SDK?

Thank you,
Marko Ristic.


Tyler Sidell (IMA SDK Team)

unread,
Mar 8, 2016, 10:38:29 AM3/8/16
to Interactive Media Ads SDK
HI Marko,

There are a couple of ways that you can determine if the ad returned is a Flash VPAID ad.  The simple solution is to right-click on the ad while playing.  If you see About Adobe Flash, then you can be assured that the ad playing is a Flash ad (although it won't necessarily verify that it is VPAID).

Another solution in Chrome would be to:
  • Open your browser's developer tools (Tools -> Developer Tools)
  • Click on "Network" tab
  • Request ad
  • Filter by ads?
  • Click on the ad tag.  This is the tag that got returned.
  • Click on Response
  • You'll see the VAST XML that gets returned.  From the XML, find the <MedaFile> node. 
Last but not least, you could set up a Charles proxy.  If you are looking to accomplish this from the API, you might be interested in Ad.getContentType().

Thanks,
Tyler Sidell
IMA SDK Team

Marko Ristic

unread,
Mar 9, 2016, 3:42:21 AM3/9/16
to Interactive Media Ads SDK
Hi Tyler,
 
The simple solution is to right-click on the ad while playing.  If you see About Adobe Flash, then you can be assured that the ad playing is a Flash ad (although it won't necessarily verify that it is VPAID).

:D ;)


If you are looking to accomplish this from the API, you might be interested in Ad.getContentType().

I expected this solution to work, but it just returns an empty string for this Ad Tag:
 https://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=is&c=23&pl=VAST&pli=8555799&PluID=0&pos=9590&ord=[timestamp]&cim=1

and other Flash VPAID ads I tested.

Is this implementation correct:
adEvent.getAd().getContentType();

I try to get this on the START event.

Thank you,
Marko.
 

Tyler Sidell (IMA SDK Team)

unread,
Mar 9, 2016, 10:56:15 AM3/9/16
to Interactive Media Ads SDK
Hi Marko,

As of 3.101.17, this information becomes available after the LOADED event. However, we're noticing that it is only returning a value when the media type is video/mp4.  I have let the rest of the team know and we will keep you updated.

Thanks,
Tyler Sidell
IMA SDK Team

Arnaud Leyder

unread,
Apr 18, 2016, 9:55:08 AM4/18/16
to Interactive Media Ads SDK
Hi IMA SDK Team,

Do you have an update on getContentType() mehod for Flash VPAID in HTML5 SDK? I can see it is still returning null.

Thanks
Arnaud

Tyler Sidell (IMA SDK Team)

unread,
Apr 18, 2016, 1:10:34 PM4/18/16
to Interactive Media Ads SDK
Hi Arnaud,

There are currently no updates on this issue at the time.  I will continue to see if I can get any further information and will update this thread accordingly, if so.

Thanks,
Tyler Sidell
IMA SDK Team

Tyler Sidell (IMA SDK Team)

unread,
Sep 6, 2016, 7:04:55 PM9/6/16
to Interactive Media Ads SDK
Hi Arnaud,

Good news as you can call the getContentType() method for Flash VPAID in HTML5.  Please let us know if you are seeing anything different.

Thanks,
Tyler Sidell
IMA SDK Team

Arnaud Leyder

unread,
Sep 7, 2016, 4:14:12 AM9/7/16
to ima...@googlegroups.com

Hi Tyler,

Yes I can see now "application/x-shockwave-flash" being returned for ad.getContentType() with a Flash VPAID in HTML5 IMA SDK.

Thanks

Arnaud

--
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/bTy9l2CSHOs/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 https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages