Skip to content

Commit

Permalink
change warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Komorski authored and Marcin Komorski committed Sep 12, 2024
1 parent f90c448 commit e72e53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function setBattrForAdUnit(adUnit, mediaType) {
const mediaTypes = adUnit.mediaTypes || {};

if (ortb2Imp[mediaType]?.battr && mediaTypes[mediaType]?.battr && (ortb2Imp[mediaType]?.battr !== mediaTypes[mediaType]?.battr)) {
logWarn(`not equal: adUnit.ortb2Imp.${mediaType}.battr: ${ortb2Imp[mediaType].battr} and adUnit.mediaTypes.${mediaType}.battr: ${mediaTypes[mediaType].battr}`);
logWarn(`adUnit ${adUnit.code} has ortb2Imp.${mediaType}.battr: ${ortb2Imp[mediaType].battr} and mediaTypes.${mediaType}.battr: ${mediaTypes[mediaType].battr}`);
}

const battr = ortb2Imp[mediaType]?.battr || mediaTypes[mediaType]?.battr;
Expand Down

0 comments on commit e72e53f

Please sign in to comment.