Skip to content

Commit

Permalink
Criteo Bid Adapter: Fix invalid DSA adrender field mapping (#11306)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardlabat authored Apr 8, 2024
1 parent eac5e04 commit b37baca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ export const spec = {
if (slot.ext?.meta?.networkName) {
bid.meta = Object.assign({}, bid.meta, { networkName: slot.ext.meta.networkName })
}
if (slot.ext?.dsa?.adrender) {
bid.meta = Object.assign({}, bid.meta, { adrender: slot.ext.dsa.adrender })
if (slot.ext?.dsa) {
bid.meta = Object.assign({}, bid.meta, { dsa: slot.ext.dsa })
}
if (slot.native) {
if (bidRequest.params.nativeCallback) {
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/criteoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ describe('The Criteo bidding adapter', function () {
};
const bids = spec.interpretResponse(response, request);
expect(bids).to.have.lengthOf(1);
expect(bids[0].meta.adrender).to.equal(1);
expect(bids[0].meta.dsa.adrender).to.equal(1);
});

it('should properly parse a bid response with a networkId with twin ad unit banner win', function () {
Expand Down

0 comments on commit b37baca

Please sign in to comment.