Skip to content

Commit

Permalink
Better warning on misconfigured end points (#11501)
Browse files Browse the repository at this point in the history
  • Loading branch information
antosarho authored May 21, 2024
1 parent 1848b66 commit 00144d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/prebidServerBidAdapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,12 @@ function bidWonHandler(bid) {
}

function getMatchingConsentUrl(urlProp, gdprConsent) {
return hasPurpose1Consent(gdprConsent) ? urlProp.p1Consent : urlProp.noP1Consent;
const hasPurpose = hasPurpose1Consent(gdprConsent);
const url = hasPurpose ? urlProp.p1Consent : urlProp.noP1Consent
if (!url) {
logWarn('Missing matching consent URL when gdpr=' + hasPurpose);
}
return url;
}

function getConsentData(bidRequests) {
Expand Down

0 comments on commit 00144d5

Please sign in to comment.