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

GDPR support for Sovrn Adapter #2475

Merged
merged 29 commits into from
May 1, 2018
Merged

GDPR support for Sovrn Adapter #2475

merged 29 commits into from
May 1, 2018

Conversation

rachelrj
Copy link
Contributor

@rachelrj rachelrj commented May 1, 2018

Type of change

feature

Description of change

gdpr support

Rachel Joyce and others added 29 commits February 7, 2018 17:04
send 'iv' param if present and full url in `site.page`
Enhance location detection within utils
CR for enhanced-location-detection PR
Reorg gettopwindowlocation util & add tests.
set creativeId to crid if present in response
Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

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

LGTM, see the comment about NaN value though.

if (bidderRequest && bidderRequest.gdprConsent) {
sovrnBidReq.regs = {
ext: {
gdpr: +bidderRequest.gdprConsent.gdprApplies
Copy link
Member

Choose a reason for hiding this comment

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

head's up - if gdprApplies is undefined you'll get NaN here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The JSON.stringify underneath converts NaN to null. I checked the JSON deserialization and the nulls get handled as if they weren't there. So.. I think we're good. Thanks for pointing out though. I appreciate it.

@mkendall07 mkendall07 added the LGTM label May 1, 2018
@rachelrj
Copy link
Contributor Author

rachelrj commented May 1, 2018

We are g2g whenever

@mkendall07 mkendall07 merged commit 9416e75 into prebid:master May 1, 2018
@mkendall07
Copy link
Member

@rachelrj
I merged. Can you please also open a PR to mark your adapter as GDPR compliant on the docs repo?
See here as an example:
prebid/prebid.github.io#731

dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* fix sovrn dealid

* send 'iv' param if present

* `page` field in `site` object sends full url

* Enhance location detection within util function.

* fix func call

* fix tagid var type

* add test for converting tagid to string

* CR

* Reorg gettopwindowlocation util & add tests.

* lint fixes

* search param is string in window location objects

* set creativeId to crid if present in response

* send gdpr info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants