googleads / videojs-ima

IMA SDK Plugin for Video.js
Apache License 2.0
445 stars 285 forks source link

access to the iframe for HAI reporting? #1134

Closed spormeon closed 6 months ago

spormeon commented 6 months ago

is there anyway to get acces to the iframe that is created so as we can get/ send reports for any HAI triggers. I can see a div with id="adysisPlayer_ima-ad-container" which is "constant" but the ima iframe sends a "random" variable/ id on the end on each load

Kiro705 commented 6 months ago

Hello @spormeon ,

As far as I know, IMA does not provide any APIs for accessing the iframe, which I think is by design. Can you share any documentation on HAI triggers, since there may be other ways to support this?

Thank you, Jackson IMA SDK team

spormeon commented 6 months ago

hi @Kiro705 these are a couple of "docs" https://developer.chrome.com/blog/heavy-ad-interventions https://github.com/johnivdel/heavy-ad-intervention

we have already tried the methods mentioned for the "Reporting API", and you just cant seem to "pick anything up" as everything seems to be happening inside the https://imasdk.googleapis.com/js/core/bridge3.613.0_en.html#goog_367038471 iframe, so no "report" is ever fired in console "Application" > background services> Reporting API tab window

DevTools_-_cdn_adysis_com_VideoDemo_DemoSite_pages_playlistUIverticalAmazonParallelReBid_html

DevTools_-_cdn_adysis_com_VideoDemo_DemoSite_pages_playlistUIverticalAmazonParallelReBid_html

we have also tried to "sniff/ look out for" for the "heavy ad intervention" element, which appears when its "triggered" but can't get to that because its in the iframe ( at least with the methods we are trying)

DevTools_-_cdn_adysis_com_VideoDemo_DemoSite_pages_playlistUIverticalAmazonParallelReBid_html

so , we are stumped as these reports are ment to be availabe to send , but just cant get to them

Kiro705 commented 6 months ago

Hello @spormeon ,

It is my understanding that the IMA SDK handles its own heavy ads detection, and will error out for ads the are detected this way. Publishers should not need to take additional steps to support this.

The iframe architecture is not specific to the videoJS-IMA plugin, but part of the IMA HTML5 SDK. If you have more questions about the functionality of the IMA SDK, I would recommend reaching out on the IMA HTML5 technical forum.

Thank you, Jackson IMA SDK team

spormeon commented 6 months ago

ok, will do