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

Adds support for additional consent #5600

Merged
merged 6 commits into from
Aug 17, 2020
Merged

Adds support for additional consent #5600

merged 6 commits into from
Aug 17, 2020

Conversation

patmmccann
Copy link
Collaborator

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Solves for #5389 on js following the extension to the TCData object proposed by Google here https://support.google.com/admanager/answer/9681920?hl=en

@patmmccann
Copy link
Collaborator Author

fyi @nielsbaarsma @bretg @bwschmidt

@patmmccann patmmccann marked this pull request as ready for review August 12, 2020 19:08
modules/consentManagement.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@smenzer smenzer left a comment

Choose a reason for hiding this comment

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

thanks for the updates, Patrick

@bretg
Copy link
Collaborator

bretg commented Aug 13, 2020

docs PR prebid/prebid.github.io#2219

@patmmccann
Copy link
Collaborator Author

@patmmccann
Copy link
Collaborator Author

Copy link
Collaborator

@robertrmartinez robertrmartinez 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, minor nitpick,

why use utils.isString in one module, but regular typeof check in the other?

Not a big deal of course haha!

@patmmccann
Copy link
Collaborator Author

patmmccann commented Aug 17, 2020 via email

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.

I think this all looks fine; I did have a question though. See below.

@@ -641,6 +641,9 @@ const OPEN_RTB_PROTOCOL = {
}
utils.deepSetValue(request, 'regs.ext.gdpr', gdprApplies);
utils.deepSetValue(request, 'user.ext.consent', firstBidRequest.gdprConsent.consentString);
if (firstBidRequest.gdprConsent.addtlConsent && typeof firstBidRequest.gdprConsent.addtlConsent === 'string') {
utils.deepSetValue(request, 'user.ext.ConsentedProvidersSettings.consented_providers', firstBidRequest.gdprConsent.addtlConsent);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just to confirm - are we sure that this field is supported by PBS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that was the field @bretg proposed on #5389 (comment) bullet point 2

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.

Thanks for highlighting that spot @patmmccann

LGTM

@jsnellbaker jsnellbaker merged commit 7696428 into prebid:master Aug 17, 2020
@patmmccann patmmccann deleted the patch-27 branch August 17, 2020 20:11
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