Skip to content

Cadent Aperture MX Bid Adapter: Include gpp consent in usersync endpoint#10404

Merged
robertrmartinez merged 2 commits intoprebid:masterfrom
EMXDigital:master
Sep 5, 2023
Merged

Cadent Aperture MX Bid Adapter: Include gpp consent in usersync endpoint#10404
robertrmartinez merged 2 commits intoprebid:masterfrom
EMXDigital:master

Conversation

@EMXDigital
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

Include gpp string and section id in usersync endpoint

Other information

}
if (gppConsent.applicableSections && typeof gppConsent.applicableSections === 'object') {
consentParams.push(`gpp_sid=${gppConsent.applicableSections}`);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe these checks can be simplified since you already check that gppConsent is an object

if (typeof gppConsent.gppString === 'string') {
if (Array.isArray(gppConsent.applicableSections)) {

Or just use optional chaining

if (typeof gppConsent?.gppString === 'string') {
if (Array.isArray(gppConsent?.applicableSections)) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR is approved already. we have noted the suggested change and plan push it as part of another PR or maintenance change. @robertrmartinez

@robertrmartinez
Copy link
Collaborator

One suggestion, though not required

@robertrmartinez robertrmartinez self-assigned this Aug 29, 2023
@robertrmartinez robertrmartinez merged commit aeaf23e into prebid:master Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments