Skip to content

Commit

Permalink
Set bidurl to impression_id and fixed small bug with correlator argum…
Browse files Browse the repository at this point in the history
…ent in adserver.js
  • Loading branch information
David Bridges authored and snapwich committed Feb 2, 2017
1 parent 9e99198 commit dfd7539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/rubicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function RubiconAdapter() {
if (bidRequest.mediaType === 'video') {
bid.width = bidRequest.params.video.playerWidth;
bid.height = bidRequest.params.video.playerHeight;
bid.vastUrl = ad.creative_depot_url;
bid.vastUrl = ad.impression_id;
bid.impression_id = ad.impression_id;
} else {
bid.ad = _renderCreative(ad.script, ad.impression_id);
Expand Down
2 changes: 1 addition & 1 deletion src/adserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ exports.dfpAdserver = function (options, urlComponents) {
var bid = adserver.getWinningBidByCode();
this.urlComponents.search.description_url = encodeURIComponent(bid.vastUrl);
this.urlComponents.search.cust_params = getCustomParams(bid.adserverTargeting);
this.urlComponents.correlator = Date.now();
this.urlComponents.search.correlator = Date.now();
};

adserver.verifyAdserverTag = function() {
Expand Down

0 comments on commit dfd7539

Please sign in to comment.