Google VAST Inspector calling unsubscribe with a function as an event type

135 views
Skip to first unread message

Konstantine Rybnikov

unread,
Jun 21, 2018, 10:21:29 AM6/21/18
to Interactive Media Ads SDK
Hi

As a part of my on-going investigation on a separate issue I'm having discussed in another thread, I started "from scratch" and to begin with, took a sample VPAID ad from https://github.com/googleads/googleads-ima-html5/blob/master/vpaid/linear/VpaidVideoAd.js to check if it works appropriately in a video player.

What I'm seeing is that the example is logging this:

...
VM18857 vpaid-kr-google-example.js:471 Subscribe AdVideoThirdQuartile
VM18857 vpaid-kr-google-example.js:471 Subscribe AdVolumeChange
VM18857 vpaid-kr-google-example.js:471 Subscribe Ping
VM18857 vpaid-kr-google-example.js:471 initAd 640x360 normal -1
VM18857 vpaid-kr-google-example.js:471 Starting ad
VM18857 vpaid-kr-google-example.js:471 Stopping ad
VM18857 vpaid-kr-google-example.js:471 unsubscribe function () { [native code] }
VM18857 vpaid-kr-google-example.js:471 unsubscribe AdClickThru
VM18857 vpaid-kr-google-example.js:471 unsubscribe function () { [native code] }
VM18857 vpaid-kr-google-example.js:471 unsubscribe AdDurationChange
VM18857 vpaid-kr-google-example.js:471 unsubscribe function () { [native code] }
...

e.g. the unsubscribe gets called with the event type first, and then with a function parameter instead. Full code is here: https://gist.github.com/k-bx/a0c31bd1573a87078d63538b60a483bb

Is that a Google VAST Inspector bug? Is this an appropriate place to report the bug?

Thank you!



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

unread,
Jun 21, 2018, 3:00:47 PM6/21/18
to ima...@googlegroups.com
Hi,

Thank you for reaching out to support. The behavior that you're seeing is working as intended. The VPAID spec defines two different ways to unregister a listener, so we have to handle both. First we call unsubscribe with (fn, event), and then we call it a second time with (event, fn).

Regards,
Chris Feldman
IMA SDK Team

--
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.
Reply all
Reply to author
Forward
0 new messages