Skip to content

Commit

Permalink
holid Bid Adapter : only iframe sync on gdpr consent (#12416)
Browse files Browse the repository at this point in the history
* Update holidBidAdapter.js

* Update holidBidAdapter.js
  • Loading branch information
patmmccann authored Nov 5, 2024
1 parent 7214c8e commit adf9964
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit adf9964

Please sign in to comment.