-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ozone adapter - fixup for gdpr and device objects #3593
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a unit test or two
- removed 3 IF statements because the condition was already tested in the validation method. - added more tests to the spec file (check ozoneData, customData & lotameData are in the right place, and also NOT in the old location as well as some GDPR based unit tests)
@bretg we've submitted updated unit tests, please review and let us know if any further updates are needed. cheers, --afsheen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not noticing this before, but the logInfo calls are vague -- please either remove or add 'ozone' so people know what they mean. Preferably remove.
modules/ozoneBidAdapter.js
Outdated
@@ -77,13 +78,18 @@ export const spec = { | |||
|
|||
delete ozoneRequest.test; // don't allow test to be set in the config - ONLY use $_GET['pbjs_debug'] | |||
if (bidderRequest.gdprConsent) { | |||
utils.logInfo('ADDING GDPR'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These debug log entries are likely to be confusing to others - please consider removing them or at least annotating with your bidder name so it's more clear what's adding GDPR.
modules/ozoneBidAdapter.js
Outdated
} | ||
} else { | ||
utils.logInfo('WILL NOT ADD GDPR'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same - please either remove or add your bidder name
@bretg done, we've explicitly added the bidder name to the debug logging statements for clarity. |
Type of change
Description of change
Updating ozone adapter to send device w/h and GDPR consent string in request.