Skip to content

Commit

Permalink
Added CPM value as parameter for Vertoz Adapter (prebid#1306)
Browse files Browse the repository at this point in the history
* Added CPM for user input

* changed variable name from cpm to cpmFloor
  • Loading branch information
Prebid-Vertoz authored and Matt Kendall committed Jul 17, 2017
1 parent 55ae941 commit 2c8ec16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/vertozBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function VertozAdapter() {
let vzEndPoint = BASE_URI;
let reqParams = bid.params || {};
let placementId = utils.getValue(reqParams, 'placementId');
let cpm = utils.getValue(reqParams, 'cpmFloor');

if (utils.isEmptyStr(placementId)) {
utils.logError('missing params:', BIDDER_NAME, 'Enter valid vzPlacementId');
Expand All @@ -31,8 +32,10 @@ function VertozAdapter() {
_vzPlacementId: placementId,
_rqsrc: reqSrc,
_cb: cb,
_slotBidId: slotBidId
_slotBidId: slotBidId,
_cpm: cpm
};

let queryParamValue = JSON.stringify(vzReq);
vzEndPoint = utils.tryAppendQueryString(vzEndPoint, QUERY_PARAM_KEY, queryParamValue);
adloader.loadScript(vzEndPoint);
Expand Down

0 comments on commit 2c8ec16

Please sign in to comment.