Skip to content

Commit

Permalink
Grid Bid Adapter : fix invalid DSA adrender field mapping (prebid#11313)
Browse files Browse the repository at this point in the history
* Criteo Bid Adapter: Fix invalid DSA adrender field mapping

* Grid Bid Adapter: Fix invalid DSA adrender field mapping
  • Loading branch information
leonardlabat authored Apr 11, 2024
1 parent 007a3b0 commit e51046e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/gridBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ function _addBidResponse(serverBid, bidRequest, bidResponses, RendererConst, bid
bidResponse.meta.demandSource = serverBid.ext.bidder.grid.demandSource;
}

if (serverBid.ext && serverBid.ext.dsa && serverBid.ext.dsa.adrender) {
bidResponse.meta.adrender = serverBid.ext.dsa.adrender;
if (serverBid.ext && serverBid.ext.dsa) {
bidResponse.meta.dsa = serverBid.ext.dsa;
}

if (serverBid.content_type === 'video') {
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/gridBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,7 +1430,9 @@ describe('TheMediaGrid Adapter', function () {
'netRevenue': true,
'ttl': 360,
'meta': {
adrender: 1,
dsa: {
adrender: 1
},
advertiserDomains: []
},
},
Expand Down

0 comments on commit e51046e

Please sign in to comment.