Skip to content

Commit

Permalink
Change key to hb_format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane committed Jan 22, 2018
1 parent 2808763 commit 5409303
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/auction.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export function getStandardBidderSettings() {
}
},
{
key: 'hb_mediatype',
key: 'hb_format',
val: function (bidResponse) {
return bidResponse.mediaType;
}
Expand Down
2 changes: 1 addition & 1 deletion src/constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"hb_size",
"hb_deal",
"hb_source",
"hb_mediatype"
"hb_format"
],
"S2S" : {
"SRC" : "s2s",
Expand Down
12 changes: 6 additions & 6 deletions test/spec/auctionmanager_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('auctionmanager.js', function () {
'hb_pb': bidPbMg,
'hb_size': size,
'hb_source': source,
'hb_mediatype': mediatype,
'hb_format': mediatype,
};
var response = getKeyValueTargetingPairs(bidderCode, bid, CONSTANTS.GRANULARITY_OPTIONS.MEDIUM);
assert.deepEqual(response, expected);
Expand Down Expand Up @@ -105,7 +105,7 @@ describe('auctionmanager.js', function () {
}
},
{
key: 'hb_mediatype',
key: 'hb_format',
val: function (bidResponse) {
return bidResponse.mediaType;
}
Expand All @@ -121,7 +121,7 @@ describe('auctionmanager.js', function () {
'hb_pb': bidPbHg,
'hb_size': size,
'hb_source': source,
'hb_mediatype': mediatype,
'hb_format': mediatype,
};
var response = getKeyValueTargetingPairs(bidderCode, bid, CONSTANTS.GRANULARITY_OPTIONS.MEDIUM);
assert.deepEqual(response, expected);
Expand Down Expand Up @@ -165,7 +165,7 @@ describe('auctionmanager.js', function () {
'hb_pb': bidPbHg,
'hb_size': size,
'hb_source': source,
'hb_mediatype': mediatype,
'hb_format': mediatype,
};
var response = getKeyValueTargetingPairs(bidderCode, bid);
assert.deepEqual(response, expected);
Expand Down Expand Up @@ -209,7 +209,7 @@ describe('auctionmanager.js', function () {
'hb_pb': bidPbMg,
'hb_size': size,
'hb_source': source,
'hb_mediatype': mediatype,
'hb_format': mediatype,
};
var response = getKeyValueTargetingPairs(bidderCode, bid, CONSTANTS.GRANULARITY_OPTIONS.MEDIUM);
assert.deepEqual(response, expected);
Expand Down Expand Up @@ -375,7 +375,7 @@ describe('auctionmanager.js', function () {
'hb_pb': 5.57,
'hb_size': '300x250',
'hb_source': source,
'hb_mediatype': mediatype,
'hb_format': mediatype,
};
var response = getKeyValueTargetingPairs(bidderCode, bid);
assert.deepEqual(response, expected);
Expand Down

0 comments on commit 5409303

Please sign in to comment.