Skip to content

Commit

Permalink
Prebid 7 : update instl for current prebid standards (#8361)
Browse files Browse the repository at this point in the history
* update clean and gamoshi

* Update waardexBidAdapter.js

* update bidrequest variable to validBidRequest

Co-authored-by: Patrick McCann <patmmccann@gmail.com>
  • Loading branch information
ChrisHuie and patmmccann authored May 3, 2022
1 parent 64375dd commit eeeab7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/cleanmedianetBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const spec = {

const imp = {
id: transactionId,
instl: params.instl === 1 ? 1 : 0,
instl: deepAccess(bidRequest.ortb2Imp, 'instl') === 1 || params.instl === 1 ? 1 : 0,
tagid: adUnitCode,
bidfloor: 0,
bidfloorcur: 'USD',
Expand Down
2 changes: 1 addition & 1 deletion modules/gamoshiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const spec = {

const imp = {
id: transactionId,
instl: params.instl === 1 ? 1 : 0,
instl: deepAccess(bidRequest.ortb2Imp, 'instl') === 1 || params.instl === 1 ? 1 : 0,
tagid: adUnitCode,
bidfloor: helper.getBidFloor(bidRequest) || 0,
bidfloorcur: 'USD',
Expand Down
2 changes: 1 addition & 1 deletion modules/waardexBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const getBidRequestToSend = validBidRequest => {
bidId: validBidRequest.bidId,
bidfloor: 0,
position: parseInt(validBidRequest.params.position) || 1,
instl: parseInt(validBidRequest.params.instl) || 0,
instl: deepAccess(validBidRequest.ortb2Imp, 'instl') === 1 || parseInt(validBidRequest.params.instl) === 1 ? 1 : 0,
};

if (validBidRequest.mediaTypes[BANNER]) {
Expand Down

0 comments on commit eeeab7b

Please sign in to comment.