Skip to content

Commit

Permalink
Use new key descriptionUrl instead of vastUrl (prebid#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiminpanchal27 authored and Will Alexander committed Mar 6, 2017
1 parent 16e0975 commit a603536
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/adapters/appnexusAst.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/adserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand Down

0 comments on commit a603536

Please sign in to comment.