-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Consent Management module - Impossible to get the callbacks used by CMP in a Postbid setup #3356
Comments
@jsnellbaker can you take a look at this please? |
@Deimos01 I've looked through the setup and tried to debug the CMP calls as they go back and forth between the page's CMP code and the Below is a short recap of what I observed:
This is strange because our Prebid CMP calls aren't the only ones making CMP calls on the page. When I setup breakpoints in the page-level CMP code and in the As to any theories on the cause of the issue, I did observe a certain sequence of events during those first round of CMP calls. There appears to be a This is just a guess, but maybe in removing the eventListener, it prevented the subsequent CMP calls from being picked up and handled when the responses were sent from the page-level CMP code. This may not be an intentional thing; there may be a race-condition of sorts due to the parallel/asynchronous calls from the different sources. I think this is a possibility as during one page load, I saw the Prebid CMP calls go first and they were properly handled by the CMP code (ie our callback functions were executed and the auction loaded without the CMP timeout error). I know this isn't a smoking gun and only a theory, but could you check with the providers of the CMP to see if they have any thoughts about the above?
|
Thank you very much @jsnellbaker to take the time to investigate. I think your theory is entirely true. I did a revealing test related to the Please do not close this issue, I'm contacting the Smart team to take a look. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Smart Adserver has just released a fix in their JS library to avoid that conflict. The issue is now solved. Thank you very much for your time. |
thanks for the follow-up! |
Type of issue
Bug
Description
When Prebid is embeded in an iframe (DFP w/o Secure frame, adservers ...), the Consent Management module seems to have difficulties to get the callbacks of the CMP (Quantcast). The module timeout is always reached, even for a non-European IP.
So I guess the module detects the CMP but can't access to the callback.
Steps to reproduce
In a postbid setup, try to put your CMP on the webpage then call your Prebid file through an adserver (DFP, Smartadserver ...) with the Consent Management module enabled.
Test page
test page
Expected results
The Consent Management module should detect the callback of the CMP, even through the iframes.
Actual results
The Consent Management module can't access to the callback, the module timeout is reached.
Platform details
Prebid 1.34 - all platforms - all geos
Other information
I think the issue is related to this PR : 2626
The text was updated successfully, but these errors were encountered: