appnexus / cmp

Consent Management Platform Reference Implementation
Apache License 2.0
84 stars 49 forks source link

the script blocks all google ads #74

Closed lucop1 closed 6 years ago

lucop1 commented 6 years ago

A very strange behaviour happen with the script in page. When the script is on the page with or without accepting the cookie all the advertising from google network doesn't appear.

If I remove the script from the page everything works as expected.

what can be the cause?

krishoyt commented 6 years ago

Sounds like maybe the ad script is calling out to a CMP and expecting something before loading? If you can post an example that reproduces this behavior I would like to see it.

mercuryyy commented 6 years ago

im having the same issue.

mercuryyy commented 6 years ago

@krishoyt you might be using cmp.complete.build use cmp.build should fit it.

At least for me it did.

lucop1 commented 6 years ago

@mercuryyy so using cmp.build instead of cmp.complete.build solved the issue of google ads not showing?

jsonUK commented 6 years ago

Why would you use cmp.bundle and not cmp.complete? Without cmp.complete you have no triggers to launch the CMP consent window.

We are seeing this behaviour on https://namemc.com where Google Ad's won't show until they accept cookies, then it triggers them to load. Is this from Google's end?

lucop1 commented 6 years ago

hi @jsonUK thanks for your feedback. Did you develop the cmp solution on namemc.com ? Because it seems that they are using AppNexus cmp but highly customized. Using the standard solution provided in this repo I'm still facing the issue of not showing Google Ads. My flow is the following: Show the CMP banner if the user accepts I reload the page and enable the tags

but google now showing ads. If I don't include the JS code with the CMP everything works fine.

andreyroth commented 6 years ago

I can't seem to reproduce this issue on https://namemc.com/. I've had reports from other users with the same bug, and am trying to investigate this further. @lucop1 mind sharing what is your OS, Browser and perhaps the log from the console when the bug happens?

jsonUK commented 6 years ago

Turns out it wasn't a problem with CMP but rather Sortable. Sortable has a wrapper that goes around the code that executes DFP. In our case, Sortable made a change their end and fixed the issue.

krishoyt commented 6 years ago

Sounds like this isn't caused by the CMP itself. Closing for now.