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

update consent manager to support a new config prop: defaultGdprScope #4970

Merged
merged 67 commits into from
Mar 24, 2020

Conversation

idettman
Copy link
Contributor

@idettman idettman commented Mar 13, 2020

Type of change

  • Feature

Description of change

Related Issue: 4747

Rubicon (and perhaps other bidders?) is not always doing IP address lookups to determine GDPR scope. So if the CMP doesn't load and an EU request goes out without the "&gdpr=1" flag, a cookie may be set.
Prebid.js could solve this problem allowing pubs to force the page into GDPR mode.

Proposal:

pbjs.setConfig({
    consentManagement: {
          gdpr: {
              cmpApi: 'iab',
              timeout: 8000,
              allowAuctionWithoutConsent: false,
              defaultGdprScope: true         // use defaultGdprScope for gdprApplies if it was not defined
            }
      }
});

Other information

#4747

nakamoto and others added 30 commits February 16, 2019 21:30
# Conflicts:
#	modules/advangelistsBidAdapter.js
#	test/spec/modules/advangelistsBidAdapter_spec.js
@idettman idettman requested a review from harpere March 13, 2020 01:25
@idettman idettman added needs 2nd review Core module updates require two approvals from the core team needs review labels Mar 13, 2020
@bretg bretg requested a review from jsnellbaker March 13, 2020 14:49
@bretg
Copy link
Collaborator

bretg commented Mar 13, 2020

covered by docs PR prebid/prebid.github.io#1857

@bretg bretg removed the request for review from jsnellbaker March 13, 2020 14:57
@bretg
Copy link
Collaborator

bretg commented Mar 13, 2020

Sorry - I muddied things here with the original post. The intention was that the defaultGdprScope flag was indeed a default - if gdprApplies is specified by the CMP, we should use that. The scenario this fixes is when there's no CMP response.

modules/consentManagement.js Outdated Show resolved Hide resolved
@idettman idettman requested review from bretg and jsnellbaker March 23, 2020 17:31
Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, had one clarifying question though. See below when possible.

Thanks!

modules/consentManagement.js Show resolved Hide resolved
@bretg bretg removed needs 2nd review Core module updates require two approvals from the core team needs review labels Mar 24, 2020
@bretg bretg merged commit f0bc358 into prebid:master Mar 24, 2020
@bretg
Copy link
Collaborator

bretg commented Mar 24, 2020

docs PR prebid/prebid.github.io#1880

jimee02 pushed a commit to openx/Prebid.js that referenced this pull request Mar 25, 2020
…prebid#4970)

* Add microadBidAdapter

* Remove unnecessary encodeURIComponent from microadBidAdapter

* Submit Advangelists Prebid Adapter

* Submit Advangelists Prebid Adapter 1.1

* Correct procudtion endpoint for prebid

* analytics update with wrapper name

* reverted error merge

* update changed default value of netRevenue to true

* Re-add rubicon analytics without deprecated getTopWindowUrl util

* Cache referrer on auction_init instead of bid_requested

* add gdprScope config support

* add tests

* updated with requested changes from the pull request

* optimization to simplify setting the gdprApplies value

Co-authored-by: nakamoto <nakamoto_tatsuya@microad.co.jp>
Co-authored-by: Chandra Prakash <chandra.prakash@advangelists.com>
Co-authored-by: Eric Harper <eharper@rubiconproject.com>
Co-authored-by: TJ Eastmond <teastmond@la-wlandaverde-mac.local>
Co-authored-by: Mark Monday <mmonday@rubiconproject.com>
Co-authored-by: msm0504 <51493331+msm0504@users.noreply.github.com>
rjvelicaria pushed a commit to openx/Prebid.js that referenced this pull request Apr 9, 2020
…prebid#4970)

* Add microadBidAdapter

* Remove unnecessary encodeURIComponent from microadBidAdapter

* Submit Advangelists Prebid Adapter

* Submit Advangelists Prebid Adapter 1.1

* Correct procudtion endpoint for prebid

* analytics update with wrapper name

* reverted error merge

* update changed default value of netRevenue to true

* Re-add rubicon analytics without deprecated getTopWindowUrl util

* Cache referrer on auction_init instead of bid_requested

* add gdprScope config support

* add tests

* updated with requested changes from the pull request

* optimization to simplify setting the gdprApplies value

Co-authored-by: nakamoto <nakamoto_tatsuya@microad.co.jp>
Co-authored-by: Chandra Prakash <chandra.prakash@advangelists.com>
Co-authored-by: Eric Harper <eharper@rubiconproject.com>
Co-authored-by: TJ Eastmond <teastmond@la-wlandaverde-mac.local>
Co-authored-by: Mark Monday <mmonday@rubiconproject.com>
Co-authored-by: msm0504 <51493331+msm0504@users.noreply.github.com>
iggyfisk pushed a commit to happypancake/Prebid.js that referenced this pull request Jun 22, 2020
…prebid#4970)

* Add microadBidAdapter

* Remove unnecessary encodeURIComponent from microadBidAdapter

* Submit Advangelists Prebid Adapter

* Submit Advangelists Prebid Adapter 1.1

* Correct procudtion endpoint for prebid

* analytics update with wrapper name

* reverted error merge

* update changed default value of netRevenue to true

* Re-add rubicon analytics without deprecated getTopWindowUrl util

* Cache referrer on auction_init instead of bid_requested

* add gdprScope config support

* add tests

* updated with requested changes from the pull request

* optimization to simplify setting the gdprApplies value

Co-authored-by: nakamoto <nakamoto_tatsuya@microad.co.jp>
Co-authored-by: Chandra Prakash <chandra.prakash@advangelists.com>
Co-authored-by: Eric Harper <eharper@rubiconproject.com>
Co-authored-by: TJ Eastmond <teastmond@la-wlandaverde-mac.local>
Co-authored-by: Mark Monday <mmonday@rubiconproject.com>
Co-authored-by: msm0504 <51493331+msm0504@users.noreply.github.com>
@robertrmartinez robertrmartinez deleted the consent-manager-force-gdpr-mode branch July 5, 2023 19:52
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

Successfully merging this pull request may close these issues.

5 participants