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

holid Bid Adapter : only iframe sync on gdpr consent #12416

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions modules/holidBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ export const spec = {
}

const bidders = getBidders(serverResponse)

if (optionsType.iframeEnabled && bidders) {
// note this only does the iframe sync when gdpr consent object exists to match previous behavior (generate error on gdprconsent not existing)
if (optionsType.iframeEnabled && bidders && gdprConsent) {
const queryParams = []

queryParams.push('bidders=' + bidders)
queryParams.push('gdpr=' + +gdprConsent.gdprApplies)
queryParams.push('gdpr_consent=' + gdprConsent.consentString)
queryParams.push('gdpr=' + +gdprConsent?.gdprApplies)
queryParams.push('gdpr_consent=' + gdprConsent?.consentString)
queryParams.push('usp_consent=' + (uspConsent || ''))

let strQueryParams = queryParams.join('&')
Expand Down