RE: Media Url for VPAID ads

154 views
Skip to first unread message
Message has been deleted

ima-sdk-adv...@google.com

unread,
May 7, 2018, 11:41:43 AM5/7/18
to ima...@googlegroups.com
Hi,

Thank you for reaching out to support. The getMediaUrl method returns the MediaFile value called out in the ad's VAST response. In this case of a VPAID ad, this MediaFile is of type  "application/javascript" and will point to a .js file.

For the tag you linked:

<MediaFile apiFramework="VPAID" type="application/javascript">
</MediaFile>

The SDK does not make the specific creative source available in this case, as that is handled by the VPAID ad.

Regards,
Chris Feldman
IMA SDK Team

On 05/07/18 07:46:03 ewa...@nine.com.au wrote:
Hi,

In order to log all the creatives files that are being played in a given session we are using the method GetMediaUrl() from google.ima.Ad. (HTML5 IMA SDK)

This method works fine for standard VAST creatives, although when dealing with VPAID's the value returned is something like this: "https://googleads.github.io/googleads-ima-html5/vpaid/linear/VpaidVideoAd.js" (Using the sample VPAID Ad Tag)

Is there any other way to find out which is the creative url that the VPAID ad is currently playing? I.e: the mp4 file...

Many thanks,

Esteban


--
You received this message because you are subscribed to the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ima-sdk+unsubscribe@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.

ewa...@nine.com.au

unread,
May 7, 2018, 5:57:32 PM5/7/18
to Interactive Media Ads SDK
Hi Chris, 

Thanks for your response. 

Is there any way we can ask for a method in the SDK to output which creative a given VPAID is playing? This is useful for us for Auditing and Troubleshooting purposes and I see no other way to actually obtain this information. 

A quick workaround, that I would not like to do, is to inspect the Video Element Src while playing the Ad with friendly Iframes, but under secure mode this also is not available as the Video Element is running within the SDK Iframe and this Iframe is from a different Origin thus not allowing access from the parent.

Many thanks,

Esteban

ima-sdk-adv...@google.com

unread,
May 8, 2018, 12:46:02 PM5/8/18
to ima...@googlegroups.com
Hi Esteban,

Thank you for following up. If you need further access to the VPAID ad to the DOM or vice versa, you'll need to use the INSECURE mode. From the SDK's perspective, the .js file is the media file. The actual creative is handled by the VPAID ad.

Regards,
Chris Feldman
IMA SDK Team

Reply all
Reply to author
Forward
0 new messages