Ads in cross-origin iframe will not run if there's an IMA SDK in the top-level window

442 views
Skip to first unread message

Kasper Mol

unread,
Sep 24, 2018, 4:35:22 AM9/24/18
to Interactive Media Ads SDK
We're using the SDK both in our top-level window, and two iframes deep (problem also occurs one iframe deep). Even though we reach the adsLoader.requestAds just fine, no network requests are ever created by the IMA, nor does the IMA debug version give us any logs. I've spent a lot of time removing everything from our SDK until I was left with a very bare-bones implementation, but the problem persists.

See project that reproduces this problem here: https://github.com/Prokos/ima-broken-iframe 
Note: root.html and no-iframe.html should be served from different domains for this bug to trigger.

Either one of the following things will get rid of the bug:

- Run both root.html and no-iframe.html from the same domain
- Do not call adSDK.init() in root.html

Neither of the above are possible solutions for us in production.

Note that we had a similar issue with the IMA SDK (no request, no logs) about a year ago. Back then it turned out I had to move the requestAds function around. However, it's concerning that IMA is not giving us any debug messages whatsoever, and instead just doesn't work.  

I'll be doing more tests today with the IMA samples to see if those have the same problems and report back.



Message has been deleted

Kasper Mol

unread,
Sep 24, 2018, 5:06:59 AM9/24/18
to Interactive Media Ads SDK
Update: the simple example as provided here: https://github.com/googleads/googleads-ima-html5/tree/master/simple is also broken.

I've added this to the repository.

florin.p...@ideastudios.ro

unread,
Sep 24, 2018, 5:45:32 AM9/24/18
to Interactive Media Ads SDK
This has been happening since chrome 67 (June). https://groups.google.com/forum/#!topic/ima-sdk/DqvnnfDuoBI
I reported the bug on chromium issue tracker as well, but there is no fix yet.
If you want to help with debugging the issue, https://bugs.chromium.org/p/chromium/issues/detail?id=867333 you are more than welcome to join.

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

unread,
Sep 24, 2018, 3:52:34 PM9/24/18
to ima...@googlegroups.com
Hi Kasper,

Thanks for reaching out to us. As mentioned in this existing thread, this sounds to be an issue with chrome. Can you please confirm again on which browser and version you are seeing the issue with? If you are seeing this only with Chrome, then we would suggest that you reach out to Chrome team for further support on this.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
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.

Kasper Mol

unread,
Sep 25, 2018, 5:00:14 AM9/25/18
to Interactive Media Ads SDK
The issue does seem to be only occurring in Chrome. However, this is still an IMA problem and it'd be much appreciated if you could help out with debugging the source code.

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

unread,
Sep 25, 2018, 3:27:53 PM9/25/18
to ima...@googlegroups.com
Hi Kasper,

We understand your concern here. I'll take this up with the rest of the team and see if we could reach out to the Chrome team for further investigation on this. We will update you via this thread if we have any new information to share.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Kasper Mol

unread,
Oct 1, 2018, 8:51:04 AM10/1/18
to Interactive Media Ads SDK
Hi, is there any update on this matter? This bug has a big impact on our business and there's not really any steps that we can take to fix the problem. 

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

unread,
Oct 1, 2018, 3:55:35 PM10/1/18
to ima...@googlegroups.com
Hi Kasper,

It has been fixed by the team and will be pushed into the next release. We will make sure to update this thread if I have any information to share on when it will be live.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

unread,
Oct 1, 2018, 4:06:04 PM10/1/18
to ima...@googlegroups.com
Hi Kasper,

Apologies for the incorrect response. My previous response is for the other issue. Regarding the update on Chrome issue, I've already shared this with the rest of the team and they are looking for the possibilities on resolving the issue. We will update you via this thread if we have any new information.

Regards,
Deepika Uragayala
IMA SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Reply all
Reply to author
Forward
0 new messages