Skip to content

Commit

Permalink
Unicorn Bid Adapter : fix net revenue (prebid#12509)
Browse files Browse the repository at this point in the history
* fix net revenue

* fix spec
  • Loading branch information
ctylim authored Dec 9, 2024
1 parent 7aa0638 commit df356f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/unicornBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const interpretResponse = (serverResponse, request) => {
ad: b.adm,
ttl: 1000,
creativeId: b.crid,
netRevenue: false,
netRevenue: true,
currency: res.cur
}

Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/unicornBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ const interpretedBids = [
ad: '<div>test</div>',
ttl: 1000,
creativeId: 'ABCDE',
netRevenue: false,
netRevenue: true,
currency: 'JPY'
}, {
requestId: '31e2b28ced2475',
Expand All @@ -472,7 +472,7 @@ const interpretedBids = [
ad: '<div>test</div>',
ttl: 1000,
creativeId: 'abcde',
netRevenue: false,
netRevenue: true,
currency: 'JPY'
}, {
requestId: '40a333e047a9bd',
Expand All @@ -482,7 +482,7 @@ const interpretedBids = [
ad: '<div>test</div>',
ttl: 1000,
creativeId: 'XYZXYZ',
netRevenue: false,
netRevenue: true,
currency: 'JPY'
}
];
Expand Down

0 comments on commit df356f5

Please sign in to comment.