Skip to content

Commit

Permalink
Appnexus Bid Adapter: fix parse of the encoded string to check for as…
Browse files Browse the repository at this point in the history
…t_override_div argument (#12106)
  • Loading branch information
astartsky authored Aug 8, 2024
1 parent 2565562 commit 6998a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ function bidToTag(bid) {
// page.html?ast_override_div=divId:creativeId,divId2:creativeId2
const overrides = getParameterByName('ast_override_div');
if (isStr(overrides) && overrides !== '') {
const adUnitOverride = overrides.split(',').find((pair) => pair.startsWith(`${bid.adUnitCode}:`));
const adUnitOverride = decodeURIComponent(overrides).split(',').find((pair) => pair.startsWith(`${bid.adUnitCode}:`));
if (adUnitOverride) {
const forceCreativeId = adUnitOverride.split(':')[1];
if (forceCreativeId) {
Expand Down

0 comments on commit 6998a3d

Please sign in to comment.