From 996086016565f55e927ea0b7d9618de58a334b27 Mon Sep 17 00:00:00 2001 From: jaiminpanchal27 Date: Thu, 2 Feb 2017 17:43:32 -0500 Subject: [PATCH] Use new key descriptionUrl instead of vastUrl (#967) --- src/adapters/appnexusAst.js | 3 ++- src/adserver.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/adapters/appnexusAst.js b/src/adapters/appnexusAst.js index 67cc393bba7..16cf0ba078d 100644 --- a/src/adapters/appnexusAst.js +++ b/src/adapters/appnexusAst.js @@ -39,7 +39,7 @@ function AppnexusAstAdapter() { tag.uuid = bid.bidId; if(bid.params.placementId) { tag.id = parseInt(bid.params.placementId, 10); - } else { + } else { tag.code = bid.params.invCode; } tag.allow_smaller_sizes = bid.params.allowSmallerSizes || false; @@ -239,6 +239,7 @@ function AppnexusAstAdapter() { bid.width = ad.rtb.video.player_width; bid.height = ad.rtb.video.player_height; bid.vastUrl = ad.rtb.video.asset_url; + bid.descriptionUrl = ad.rtb.video.asset_url; } else { bid.width = ad.rtb.banner.width; bid.height = ad.rtb.banner.height; diff --git a/src/adserver.js b/src/adserver.js index 6760554dc69..fce4695363f 100644 --- a/src/adserver.js +++ b/src/adserver.js @@ -30,7 +30,7 @@ exports.dfpAdserver = function (options, urlComponents) { adserver.appendQueryParams = function() { var bid = adserver.getWinningBidByCode(); - this.urlComponents.search.description_url = encodeURIComponent(bid.vastUrl); + this.urlComponents.search.description_url = encodeURIComponent(bid.descriptionUrl); this.urlComponents.search.cust_params = getCustomParams(bid.adserverTargeting); this.urlComponents.correlator = Date.now(); };