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

gppControl_usstates: activity controls for US state consent #10283

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

dgirardi
Copy link
Collaborator

Type of change

  • Feature

Description of change

This implements the normalization rules for US state consent defined in here, and uses them to set up the same activity control rules that used for usnat.

By default, including this module activates all rules when GPP is configured. Configuration can be used to:

  • only enable rules for some sections
       pbjs.setConfig({
          consentManagement: {
              gpp: {
                 // ...
                 mspa: {
                    sids: [8, 9] // enforce rules only in CA & VA
                 }
              }
          }
       })
    
  • override API names to use when talking to the CMP
      pbjs.setConfig({
          consentManagement: {
              gpp: {
                 // ...
                 mspa: {
                    sections: {
                        8: {
                           name: 'uspv1ca'  // seen in some production CMPs
                        }
                    }
                 }
              }
         }
      })
    
  • set up rules for sections that are not (yet) known to the module, if they can use the same normalization rules as one of the known sections
      pbjs.setConfig({
          consentManagement: {
              gpp: {
                 // ...
                 mspa: {
                      sids: [13],
                      sections: {
                          13: {
                               name: 'someBrandNewGppApi',
                               normalizeAs: 7  // "treat this section as section 7 (usnat)"
                          }
                      }
                 }
              }
          }
      })
    

Other information

Closes #9666

@robertrmartinez
Copy link
Collaborator

Hi all, I am finishing up a couple high priority projects on my side so will not be able to get to this review until next week.

Just wanted to give you a heads up.

Copy link
Contributor

@Fawke Fawke left a comment

Choose a reason for hiding this comment

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

LGTM

@patmmccann patmmccann merged commit a23e5f0 into prebid:master Aug 17, 2023
2 checks passed
jxdeveloper1 added a commit to jxdeveloper1/Prebid.js that referenced this pull request Aug 18, 2023
* master: (107 commits)
  Increment version to 8.11.0-pre
  Prebid 8.10.0 release
  add privacyIcon to not native asset list (prebid#10259)
  gppControl_usstates: activity controls for US state consent (prebid#10283)
  UserID: check for all consent (not just GDPR) to check if an ID needs refreshing (prebid#10286)
  fluct Bid Adapter: add user.data to bid requests (prebid#10318)
  Prebid Server adapter: improve cookie_sync tests, check GPP fields are populated (prebid#10362)
  fix: consolidate banner format array (prebid#10365)
  consentManagementGpp: support GPP 1.1 (prebid#10282)
  Relay Bid Adapter : Initial Release (prebid#10197)
  Yieldmo Bid Adapter : adding 4.x VAST protocol support (prebid#10363)
  Cadent Aperture MX Bid Adapter: support GPP and GPP Section Ids (prebid#10342)
  identityLinkSubmodule: add additional check on retrieving the envelope (prebid#10355)
  fluct Bid Adapter: add gpid to bid requests (prebid#10361)
  Increment version to 8.10.0-pre
  Prebid 8.9.0 release
  fledgeForGpt: consolidate publisher configuration (prebid#10360)
  ConcertBidAdapter: Add `browserLanguage` to request `meta` object (prebid#10356)
  GrowthCode Analytics: Updates/BugFixes (prebid#10339)
  Activity Controls GPP: invalidate covered = 0 in mspa (prebid#10354)
  ...
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.

GPP Phase 4
5 participants