Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Upgrading from prebid version 3.27 to 4.1 not working

Open saileshd opened this issue 6 years ago • 16 comments

Type of issue

Question

Description

Prebid version 3.27 is working perfectly for us. However, when we upgrade to the version 4.0 or 4.1 or 4.11 it is not working at all.

These are the bidders we are including:

appnexus beachfront gumgum ix lkqd oneVideo openx pubmatic pulsepoint rhythmone rubicon sonobi spotx telaria

Consent Management - GDPR Consent Management - US Privacy DFP Video Supply Chain Object User ID - Unified ID

Steps to reproduce

Test page

Expected results

The upgrade should work seamlessly.

Actual results

Platform details

Other information

saileshd avatar Aug 02 '20 18:08 saileshd

perhaps a test page would help

patmmccann avatar Aug 04 '20 16:08 patmmccann

might be the same issue as reported in https://github.com/prebid/Prebid.js/issues/5572

jbartek25 avatar Aug 06 '20 07:08 jbartek25

Can you provide more details on what you are seeing vs what you are expecting?

mkendall07 avatar Aug 11 '20 22:08 mkendall07

I have a simple console.log(bids) in my bidsBackHandler() code that logs it as undefined in the 4.x version. In the 3.27 version it logs either an bids object or an empty object {}. Also, none of the bidders seem to be working as expected.

var bidsBackHandler = function(bids) { console.log(bids); . . . . }

saileshd avatar Aug 22 '20 06:08 saileshd

@patmmccann @mkendall07

Here are the test pages with the only difference being the 1st one uses prebid.js version 3.27 and the 2nd one uses prebid.js version 4.4.0

Test page 1 with prebid.js version 3.27 - https://a.jsrdn.com/test/saileshd/prebid/index.html?pbjs_debug=true Test page 2 with prebid.js version 4.4.0 - https://a.jsrdn.com/test/saileshd/prebid/index2.html?pbjs_debug=true

saileshd avatar Aug 25 '20 03:08 saileshd

appears to be a duplicate of #5572

patmmccann avatar Aug 26 '20 13:08 patmmccann

@patmmccann even when I removed the allowAuctionWithoutConsent=true from my config it still does not work.

saileshd avatar Aug 26 '20 18:08 saileshd

Try either installing a cmp or removing consent management module

On Wed, Aug 26, 2020 at 2:24 PM Sailesh Davuluri [email protected] wrote:

@patmmccann even when I removed the allowAuctionWithoutConsent=true from my config it still does not work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

patmmccann avatar Aug 26 '20 21:08 patmmccann

Or setting gdpr applies to false.

On Wed, Aug 26, 2020 at 5:59 PM Patrick McCann [email protected] wrote:

Try either installing a cmp or removing consent management module

On Wed, Aug 26, 2020 at 2:24 PM Sailesh Davuluri [email protected] wrote:

@patmmccann even when I removed the allowAuctionWithoutConsent=true from my config it still does not work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

patmmccann avatar Aug 26 '20 21:08 patmmccann

@patmmccann I'm including these 2 modules in my prebid.js download Consent Management - GDPR Consent Management - US Privacy

If I remove them, then how can I enable GDPR/CCPA where needed?

Also, shouldn't the configs work similar to how they work with the 3.x version?

saileshd avatar Aug 27 '20 00:08 saileshd

See from 5572 https://github.com/prebid/Prebid.js/issues/5572#issuecomment-680084767 ; if you have a consent management config, you should either have a cmp, a consent object you are passing in, or a setting that says gdpr applies isn't true.

On Wed, Aug 26, 2020 at 8:21 PM Sailesh Davuluri [email protected] wrote:

@patmmccann https://github.com/patmmccann I'm including these 2 modules in my prebid.js download Consent Management - GDPR Consent Management - US Privacy

If I remove them, then how can I enable GDPR/CCPA where needed?

Also, shouldn't the configs work similar to how they work with the 3.x version?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prebid/Prebid.js/issues/5562#issuecomment-681190013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM25ZY4WV7YB3A4XC2HKO3SCWRJBANCNFSM4PSVH7TQ .

patmmccann avatar Aug 27 '20 13:08 patmmccann

@patmmccann the config is set up at beginning of page. We won't know if the there is a cmp or not. The previous 3.x version was handling it correctly and the auction proceeded without any issues. Why is the auction aborting if there is no cmp on the page in the 4.x version?

saileshd avatar Aug 28 '20 02:08 saileshd

Why is the auction aborting if there is no cmp on the page in the 4.x version?

Because TCF rules are enforced by default in 4.x if consentManagement config is provided. They weren't enforced in 3.x unless you turned them on.

You will need to work with your lawyers to determine how you want to handle the various scenarios. We've started to collect the different options available at https://docs.prebid.org/dev-docs/cmp-best-practices.html

Specifically, maybe this idea is worth considering:

If the CMP is removed in some geos, the publisher can use the presence of the __tcfapi function as a signal to set the PBJS consentManagement config

Or you could just turn off enforcement of certain purposes in certain geos that you and your lawyers agree upon.

bretg avatar Aug 28 '20 15:08 bretg

@bretg Our ConsentManagement config contains both GDPR as well as USP. We can't just use the __tcpapi function. Is there a reason why the bidding aborts if the config is present but the __tcpapi function is not present? That won't work for CCPA

				"consentManagement": {
					"gdpr": {
						"cmpApi": "iab",
						"timeout": 10000,
						"defaultGdprScope": true
					},
					"usp": {
						"cmpApi": "iab",
						"timeout": 10000
					}
				}

saileshd avatar Aug 28 '20 16:08 saileshd

@bretg this is how I worked around the issue. Is this the recommended way?

			var consentManagement = {};
			consentManagement.usp = {
				"cmpApi": "iab",
				"timeout": 10000
			};
			if (typeof __tcfapi === 'function') {
				consentManagement.gdpr = {
					"cmpApi": "iab",
					"timeout": 10000,
					"defaultGdprScope": true
				};
			}
			pbjs.setConfig({consentManagement});

saileshd avatar Aug 28 '20 18:08 saileshd

Closing this issue as duplicate of the conversation in https://github.com/prebid/Prebid.js/issues/5572

bretg avatar Sep 01 '20 19:09 bretg