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

33Across: Update GDPR handling #3944

Merged
merged 65 commits into from
Jul 2, 2019
Merged

33Across: Update GDPR handling #3944

merged 65 commits into from
Jul 2, 2019

Conversation

curlyblueeagle
Copy link
Contributor

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

Updated how user sync is handled in gdpr scenarios

Be sure to test the integration with your adserver using the Hello World sample page.

curlyblueeagle and others added 30 commits August 3, 2018 12:36
# Conflicts:
#	test/spec/modules/33acrossBidAdapter_spec.js
add withSite() method to TtxRequestBuilder
contribute viewability as 0 for inactive tab
@jsnellbaker jsnellbaker self-requested a review July 1, 2019 12:40
@jsnellbaker jsnellbaker self-assigned this Jul 1, 2019
@jsnellbaker
Copy link
Collaborator

@curlyblueeagle Do you have a set of test params available that return a valid bid? I tried to use the values in the .md file, but they were rejected by the adserver since the siteId didn't match the proper regex. I have a copy of the server response for reference:

{"error":{"message":"Validation failed","details":[{"message":"\"id\" with value \"examplePub1234\" fails to match the required pattern: /^[a-zA-Z0-9_-]{22}$/","path":["site","id"],"type":"string.regex.base","context":{"pattern":{},"value":"examplePub1234","key":"id","label":"id"}}]}}

@curlyblueeagle
Copy link
Contributor Author

@jsnellbaker I have updated the .md doc with valid siteId. Please use this to test. Note that a bid is still not guaranteed, you may receive a no bid which still should validate our adapter and exchange endpoint

@jsnellbaker
Copy link
Collaborator

@curlyblueeagle Thanks for providing the updated params. Everything looks good.

@jsnellbaker jsnellbaker merged commit f605931 into prebid:master Jul 2, 2019
VideoReach pushed a commit to VideoReach/Prebid.js that referenced this pull request Aug 1, 2019
* check gdpr in buildRequest

* User sync based on whether gdpr applies or not

* check if consent data exists during user sync

* split user sync into further branches: 1) when gdpr does not apply 2) when consent data is unavailable

* contribute viewability to ttxRequest

* update tests

* remove window mock from tests

* use local variables

* introduce ServerRequestBuilder

* add withOptions() method to ServerRequestBuilder

* add semicolons

* sync up package-lock.json with upstream/master

* stub window.top in tests

* introduce getTopWindowSize() for test purpose

* reformat code

* add withSite() method to TtxRequestBuilder

add withSite() method to TtxRequestBuilder

* add isIframe() and _isViewabilityMeasurable()

* handle NON_MEASURABLE viewability in nested iframes

* consider page visibility, stub utils functions getWindowTop() and getWindowSelf()

* contribute viewability as 0 for inactive tab

* add prebidjs version to ttx request

* send caller as an array

* fix JSDoc in utils.js

* send viewability as non measurable when unable to locate target HTMLElement, add warning message

* introduce mapAdSlotPathToElementId()

* introduce getAdSlotHTMLElement(), add logging

* introduce mapAdSlotPathToElementId()

* update logging in ad unit path to element id mapping

* rephrase logging, fix tests

* update adapter documentation

* remove excessive logging

* improve logging

* revert change

* fix return of _mapAdUnitPathToElementId()

* improve logging of _mapAdUnitPathToElementId()

* do not use Array.find()

* return id once element is found

* return id once element is found

* let -> const

* Removing killswitch behavior for GDPR

* Updated comments to reflect current gdpr logic

* URI encode consent string

* Updated example site ID to help Prebid team e2e test our adapter
sa1omon pushed a commit to gamoshi/Prebid.js that referenced this pull request Nov 28, 2019
* check gdpr in buildRequest

* User sync based on whether gdpr applies or not

* check if consent data exists during user sync

* split user sync into further branches: 1) when gdpr does not apply 2) when consent data is unavailable

* contribute viewability to ttxRequest

* update tests

* remove window mock from tests

* use local variables

* introduce ServerRequestBuilder

* add withOptions() method to ServerRequestBuilder

* add semicolons

* sync up package-lock.json with upstream/master

* stub window.top in tests

* introduce getTopWindowSize() for test purpose

* reformat code

* add withSite() method to TtxRequestBuilder

add withSite() method to TtxRequestBuilder

* add isIframe() and _isViewabilityMeasurable()

* handle NON_MEASURABLE viewability in nested iframes

* consider page visibility, stub utils functions getWindowTop() and getWindowSelf()

* contribute viewability as 0 for inactive tab

* add prebidjs version to ttx request

* send caller as an array

* fix JSDoc in utils.js

* send viewability as non measurable when unable to locate target HTMLElement, add warning message

* introduce mapAdSlotPathToElementId()

* introduce getAdSlotHTMLElement(), add logging

* introduce mapAdSlotPathToElementId()

* update logging in ad unit path to element id mapping

* rephrase logging, fix tests

* update adapter documentation

* remove excessive logging

* improve logging

* revert change

* fix return of _mapAdUnitPathToElementId()

* improve logging of _mapAdUnitPathToElementId()

* do not use Array.find()

* return id once element is found

* return id once element is found

* let -> const

* Removing killswitch behavior for GDPR

* Updated comments to reflect current gdpr logic

* URI encode consent string

* Updated example site ID to help Prebid team e2e test our adapter
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