Skip to content

Commit

Permalink
placeholder for bid currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Fang Bai committed Oct 23, 2017
1 parent 7b582ed commit 11f2664
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/openxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ function createBidResponses(adUnits, {bids, startTime}) {
bidResponse.ttl = 300;
// true is net, false is gross
bidResponse.netRevenue = true;
// waiting for this to be exposed
bidResponse.currency = adUnit.currency;

// additional fields to add
Expand Down Expand Up @@ -280,8 +279,7 @@ function generateVideoParameters(bid) {
let oxVideo = bid.params.video;
let oxVideoParams = {
auid: bid.params.unit,
url: oxVideo.url,
jsonp: 'json'
url: oxVideo.url
};

if (oxVideo.vtest) {
Expand All @@ -305,8 +303,7 @@ function createVideoBidResponses(response, {bid, startTime}) {
bidResponse.ttl = 300;
// true is net, false is gross
bidResponse.netRevenue = true;
// waiting for this to be exposed
bidResponse.currency = 'USD';
bidResponse.currency = response.currency;

if (response.pub_rev) {
bidResponse.cpm = Number(response.pub_rev) / 1000;
Expand Down

0 comments on commit 11f2664

Please sign in to comment.