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

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

Merged
merged 2 commits into from
Sep 5, 2023

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
4 checks passed
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.

None yet

3 participants