Skip to content

Commit

Permalink
Improvedigital Bid Adapter : update razr (prebid#11290)
Browse files Browse the repository at this point in the history
* Improve Digital PG flag

* ImproveDigital - update internal logic due to ad markup changes

* Updated tests

---------

Co-authored-by: Jozef Bartek <[email protected]>
  • Loading branch information
cciocov and jbartek25 authored Apr 16, 2024
1 parent da3e7d2 commit 524617d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/improvedigitalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ const ID_RAZR = {

const cfgStr = JSON.stringify(cfg).replace(/<\/script>/ig, '\\x3C/script>');
const s = `<script>window.__razr_config = ${cfgStr};</script>`;
bid.ad = bid.ad.replace(/<body[^>]*>/, match => match + s);
// prepend RAZR config to ad markup:
bid.ad = s + bid.ad;

this.installListener();
},
Expand Down
Loading

0 comments on commit 524617d

Please sign in to comment.