Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set reporting endpoint in cross-domain iframe from parent page #262

Open
wiedaw opened this issue Apr 26, 2023 · 3 comments
Open

Set reporting endpoint in cross-domain iframe from parent page #262

wiedaw opened this issue Apr 26, 2023 · 3 comments

Comments

@wiedaw
Copy link

wiedaw commented Apr 26, 2023

Hello.
I generate on my website cross-origin iframes which include ads. Is it possible to set endpoint inside these iframes to send reports to my custom endpoint when an ad intervention occure?
I've set the observer and endpoint on parent page but nothing is sent. I also injected script to these iframes and also nothing is sent.

Thank you in advance for you help.

@clelland
Copy link
Contributor

Reporting endpoints can be defined on any frame, but they only affect reports that are generated within that frame. So if the intervention occurs within the frame where you set the endpoints, then they should be sent. If the intervention happens in a different frame, then it will not be.

If you suspect this is a bug in Chrome's implementation (which is totally possible,) then you can file a bug at https://crbug.com/, with reproduction steps if you have them, and the team there can investigate.

@wiedaw
Copy link
Author

wiedaw commented Apr 27, 2023

To be more accurate: I load the page and get the response from the ad server with the creative. I prepare the iframe and render this response inside the iframe. I don't know the structure inside the response, so I can get different creatives.
So, is it possible to set the endpoint from parent page in that iframe when the creative comes from third-party?
Or set some communication to pass this information up to the parent page about ad intervention?

I get the information about intervention in developer console so I'm wondering if I can capture in other way the event that some ads on my page was blocked.

@clelland
Copy link
Contributor

Closing as not planned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants