[IMA SDK HTML5] PointerEvents handler is not called when non-linear ads are displayed

126 views
Skip to first unread message

森本幸紘

unread,
Apr 8, 2022, 7:22:31 AM4/8/22
to Interactive Media Ads SDK
Hi,

When a non-linear ad is displayed during content playback in the following layout, handler is not called to PointerEvents registered in the parent element.

Layout:

<body>
  <div id="parent"> <!-- registered PointerEvents but didn't receive -->
    <video id="content"></video>
    <div id="ima-container">
      <iframe></iframe>
    </div>
  </div>
</body>

We have confirmed that mouse and touch events can be received by the parent element.
This seems to be due to the IMA HTML5 SDK executing dispachEvent.

Could you dispach PointerEvents to the parent element by dispachEvent in the same way?

Thanks.

IMA SDK

unread,
Apr 11, 2022, 10:48:20 AM4/11/22
to yukihiro...@play.jp, ima...@googlegroups.com
Hello,

Thank you for reaching out to us.

Could you kindly share a sample app via Reply privately to author option showing your user case? 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002ZL5SBQA1&entry.80707362=00101171

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2ZL5SB:ref
Message has been deleted

森本幸紘

unread,
Apr 15, 2022, 6:36:34 AM4/15/22
to Interactive Media Ads SDK
Hi,

We tried accesses Google Form, but was unable to upload the file due to a warning screen that said the file could not be uploaded because data loss prevention was enabled.
Do you know how to enable uploading?

Also, We tried reply to this thread with a sample URL and steps but it was deleted.

Thanks.

2022年4月11日月曜日 23:48:20 UTC+9 imasdk:

IMA SDK

unread,
Apr 20, 2022, 2:55:32 AM4/20/22
to yukihiro...@play.jp, ima...@googlegroups.com

Hello,

 

Michael here and I work along with Teejay.

 

We do see the sample page URL and the steps to reproduce the behavior that you sent to us in this thread. However, you may not be aware that you have sent it privately instead of responding to the forum case so now you think that it was deleted, but it is not.

 

On the other hand, we could still not do further investigation as we do not have the sample project implementation that is being requested at your end, we need this to get a closer look on how you implement this and see what causes the behavior. Would you be able to retry sending this sample to us? I know that you encountered an issue uploading it, but if you could send to us a screenshot of the issue then maybe we can help as we have not encountered the same issue on other users when they try to upload files with the same process.

 

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

 

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002ZL5SBQA1&entry.80707362=00101171

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Regards,

Google Logo
Michael Angelo
IMA SDK Team
 


ref:_00D1U1174p._5004Q2ZL5SB:ref
Message has been deleted

森本幸紘

unread,
Apr 21, 2022, 11:30:19 PM4/21/22
to Interactive Media Ads SDK
Hi,

Thanks for your response.
We found out we was able to give you the sample page URL and the steps.

We attach a screenshot of the upload issue (screenshot.png).

Also, We attach the sample project implementation (sample.html).
If you view sample.html in browser, you should be able to see the page where the issue occurs.
The steps to reproduce is also described below.

Steps to reproduce:

1. View sample.html in browser.
2. Press Start button and display non-linear ad.
3. Click on the video area.
As a result, The following events are output to the textarea.
mousedown/mouseup

We expect pointerdown/pointerup to be output as well, but they are not.

Regards,

sample.html
screenshot.png

IMA SDK

unread,
Apr 26, 2022, 6:32:24 AM4/26/22
to yukihiro...@play.jp, ima...@googlegroups.com

Hello,

 

Thank you for your response.

 

What we need in the sample app implementation is not just the html file but also the code itself. We need this when raising to our wider team for further investigation, look closely at the code implementation to narrow down the issue, would you be able to share this with us?

 

On the other hand, base on the error you received when uploading the requested information, it appears that there is some settings in your domain that needs to be disabled. If it does not work for you, you may send the requested details directly on this thread instead privately via "Reply To Author" button.

 

Additionally, have you replicated the same behavior using one of our sample apps? If not, we would recommend to pattern your work against our sample then modify it to fit your use case to avoid implementation issues.

Regards,

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

森本幸紘

unread,
Apr 28, 2022, 2:52:03 AM4/28/22
to Interactive Media Ads SDK
Hello,

Thank you for your response.

> What we need in the sample app implementation is not just the html file but also the code itself.

By code, do you mean the javascript code for integrating the IMA SDK as described in the IMA SDK Guides?
If so, the code is in the script element of sample.html.


> Additionally, have you replicated the same behavior using one of our sample apps? If not, we would recommend to pattern your work against our sample then modify it to fit your use case to avoid implementation issues.

The sample.html is based on the files in the simple directory of the IMA SDK sample apps.
I think you can happen the issue from the sample apps by following the steps below.

1. Add the following code to index.html in the simple directory of The sample apps

index.html

<div><textarea id="text" style="width: 200px; height: 200px;"></textarea></div>
<script>
let parentEle = document.getElementById('mainContainer');
let textEle = document.getElementById('text');
let output = function (event) {
  console.log('output:' + event.type);
  textEle.innerHTML += event.type + "&#13;";
};
parentEle.addEventListener('pointerdown', output);
parentEle.addEventListener('pointerup', output);
parentEle.addEventListener('mousedown', output);
parentEle.addEventListener('mouseup', output);
parentEle.addEventListener('touchstart', output);
parentEle.addEventListener('touchend', output);
</script>

2. Edit the following code in ads.js in the simple directory of The sample apps to display non-linear ads.

ads.js

// adsRequest.adTagUrl = 'https://pubads.g.doubleclick.net/gampad/ads?' +
//     'iu=/21775744923/external/single_ad_samples&sz=640x480&' +
//     'cust_params=sample_ct%3Dlinear&ciu_szs=300x250%2C728x90&gdfp_req=1&' +
//     'output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=';
// Nonlinear Ad
adsRequest.adTagUrl = 'https://pubads.g.doubleclick.net/gampad/ads?sz=480x70&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dnonlinear&correlator=';

3. Do the reproduction procedure that We gave you in previous email.


Also, We tried to attach the file (zip) of the simple directory after the changes, but I could not attached it due to formatting problems.
The code is almost the same as sample.html, so please refer to that.

Regards,

IMA SDK

unread,
May 1, 2022, 11:37:32 PM5/1/22
to yukihiro...@play.jp, ima...@googlegroups.com

Hello,

 

Thank you for confirmation. With that, I have raised the issue to our wider team for further investigation. We will provide an update here once we have received sufficient information.

Regards,

森本幸紘

unread,
May 9, 2022, 3:05:24 AM5/9/22
to Interactive Media Ads SDK
Hello,

Thank you for your response.
I'm looking forward to hearing from results of your investigation.

Regards,

2022年5月2日月曜日 12:37:32 UTC+9 imasdk:

IMA SDK

unread,
May 11, 2022, 4:48:45 AM5/11/22
to yukihiro...@play.jp, ima...@googlegroups.com

Hello,

 

Hope you are doing well.

 

Our team have responded back to us and confirmed that pointer events didn't exist when this API was created. That said, our team find it as a reasonable add, thus a feature request has been automatically created for your concern. Please keep an eye on our release notes or blog post for future updates.

Regards,

森本幸紘

unread,
May 11, 2022, 11:16:56 PM5/11/22
to Interactive Media Ads SDK
Hello,

Thank you for your response and create a feature request.
I'm looking forward to resolving this.

Regards,

2022年5月11日水曜日 17:48:45 UTC+9 imasdk:

IMA SDK

unread,
May 13, 2022, 6:09:52 AM5/13/22
to yukihiro...@play.jp, ima...@googlegroups.com

Hello,

 

Thank you for your response. The blog contains important announcements that are cascaded by our team, which are also captured in our release notes. I would highly encourage that you check those, because in the event that this feature would be exposed in the SDK it will be announced there.

Regards,

森本幸紘

unread,
Dec 1, 2022, 3:47:18 AM12/1/22
to Interactive Media Ads SDK
Hello,

Could you tell us about the current status?
We have confirmed that this issue is still occurring in the latest SDK.

Regards,

2022年5月13日金曜日 19:09:52 UTC+9 imasdk:

IMA SDK

unread,
Dec 1, 2022, 2:20:21 PM12/1/22
to yukihiro...@play.jp, ima...@googlegroups.com
Hello,

Thank you for following up. As per checking, this is still under discussion. We would recommend to keep an eye on our developer blog for updates regarding this.

Regards,
Google Logo
Teejay Wennie
IMA SDK Team
 


ref:_00D1U1174p._5004Q2ZL5SB:ref
Reply all
Reply to author
Forward
0 new messages