Skip to content

Add support for Privacy Regulations | Fix video param validation#79

Open
shubhamc-ins wants to merge 8 commits intoprebid-masterfrom
INSTISSP-729-prebid-adapter-updates
Open

Add support for Privacy Regulations | Fix video param validation#79
shubhamc-ins wants to merge 8 commits intoprebid-masterfrom
INSTISSP-729-prebid-adapter-updates

Conversation

@shubhamc-ins
Copy link

@shubhamc-ins shubhamc-ins commented Mar 20, 2024

  • dsa
  • us_privacy/ccpa
  • gpp
  • gppSid
  • coppa

- dsa
- us_privacy/ccpa
- gpp
- gppSid
@shubhamc-ins shubhamc-ins changed the title add support for: Add support for Privacy Regulations Mar 20, 2024
@shubhamc-ins shubhamc-ins changed the title Add support for Privacy Regulations Add support for Privacy Regulations | Fix video param validation Mar 20, 2024
@shubhamc-ins shubhamc-ins force-pushed the INSTISSP-729-prebid-adapter-updates branch 2 times, most recently from 83b6f7c to a553292 Compare March 20, 2024 13:28
'search': v => typeof v === 'string',
'mobile': v => isInteger(),
'content': v => typeof v === 'object',
'keywords': v => typeof v === 'string',

Choose a reason for hiding this comment

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

even though this is under site in prebid js, we can use this for both site & content in bid requests on the exchange right?

Copy link
Author

@shubhamc-ins shubhamc-ins Mar 25, 2024

Choose a reason for hiding this comment

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

Yes, correct!

Copy link
Author

@shubhamc-ins shubhamc-ins Mar 25, 2024

Choose a reason for hiding this comment

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

Also we are not doing any validation on content object from here. We can do that in exchange. @rohanInsticator

Copy link

@rohanInsticator rohanInsticator left a comment

Choose a reason for hiding this comment

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

how about another test-case if only one or more of the privacy policies are present?

And also, something more for video changes?

@shubhamc-ins
Copy link
Author

shubhamc-ins commented Mar 25, 2024

how about another test-case if only one or more of the privacy policies are present?

And also, something more for video changes?

I added few more test cases and updated the PR. Please check now. @rohanInsticator

let regs = {
ext: {},
};
if (bidderRequest.gdprConsent) {

Choose a reason for hiding this comment

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

Check how rubicon adapter works, they pass consent string regardless of gdpr consent object is true or not. We should do that too since the consentString can be there for some Non-EU countries too. Please update the same for user object too

Copy link
Author

@shubhamc-ins shubhamc-ins Mar 26, 2024

Choose a reason for hiding this comment

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

Actually, if you see the latest code of rubicon.
Screenshot 2024-03-26 at 11 28 18 AM

They do check for gdprConsent and have removed the user.ext.consent as regs.ext.gdprConsentString servers the same purpose.
@rohanInsticator

Choose a reason for hiding this comment

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

User consent is there in rubicon, not sure what you were checking

utils.deepSetValue(data, 'user.ext.consent', bidderRequest.gdprConsent.consentString);

Copy link
Author

@shubhamc-ins shubhamc-ins Mar 26, 2024

Choose a reason for hiding this comment

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

@rohanInsticator you are checking our repository, it's master is not synced with Prebid's official master branch.

Check this https://github.com/prebid/Prebid.js/blob/master/modules/rubiconBidAdapter.js

Choose a reason for hiding this comment

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

I was looking at PrebidJS repo only in my intellij. I cannot pull the latest on master over there somehow. Even if rubicon has removed it, they must be appending it on the Server Side as IAB said it's good to have that field inside User Object too.

@shubhamc-ins shubhamc-ins changed the base branch from prebid-master to master March 26, 2024 13:57
@shubhamc-ins shubhamc-ins changed the base branch from master to prebid-master April 2, 2024 11:23
@shubhamc-ins shubhamc-ins force-pushed the INSTISSP-729-prebid-adapter-updates branch 3 times, most recently from 3780613 to df112dc Compare April 10, 2024 10:02
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.

2 participants

Comments