Skip to content

Commit

Permalink
Remove description_url (#1922)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlane authored and jaiminpanchal27 committed Dec 6, 2017
1 parent ca62874 commit bceb74f
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion modules/admixerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ var AdmixerAdapter = function AdmixerAdapter() {
if (bid.vastUrl) {
bidObject.mediaType = 'video';
bidObject.vastUrl = bid.vastUrl;
bidObject.descriptionUrl = bid.vastUrl;
} else {
bidObject.ad = bid.ad;
}
Expand Down
1 change: 0 additions & 1 deletion modules/adxcgBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export const spec = {
bid.ad = serverResponseOneItem.ad;
} else if (serverResponseOneItem.vastUrl) {
bid.vastUrl = serverResponseOneItem.vastUrl;
bid.descriptionUrl = serverResponseOneItem.vastUrl;
bid.mediaType = 'video';
} else if (serverResponseOneItem.nativeResponse) {
bid.mediaType = 'native';
Expand Down
1 change: 0 additions & 1 deletion modules/aerservBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const AerServAdapter = function AerServAdapter() {
bid.height = response.h;
if (bidRequest.mediaType === 'video') {
bid.vastUrl = response.vastUrl;
bid.descriptionUrl = response.vastUrl;
bid.mediaType = 'video';
} else {
bid.ad = response.adm;
Expand Down
1 change: 0 additions & 1 deletion modules/appnexusAstBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ function newBid(serverBid, rtbBid) {
width: rtbBid.rtb.video.player_width,
height: rtbBid.rtb.video.player_height,
vastUrl: rtbBid.rtb.video.asset_url,
descriptionUrl: rtbBid.rtb.video.asset_url,
ttl: 3600
});
// This supports Outstream Video
Expand Down
1 change: 0 additions & 1 deletion modules/indexExchangeBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,6 @@ var IndexExchangeAdapter = function IndexExchangeAdapter() {
bid.width = cygnusRequest.video.w;
bid.height = cygnusRequest.video.h;
bid.vastUrl = cygnusBid.ext.vasturl;
bid.descriptionUrl = cygnusBid.ext.vasturl;
bid.mediaType = 'video';

bidmanager.addBidResponse(prebidRequest.placementCode, bid);
Expand Down
1 change: 0 additions & 1 deletion modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ export const spec = {
bid.width = bidRequest.params.video.playerWidth;
bid.height = bidRequest.params.video.playerHeight;
bid.vastUrl = ad.creative_depot_url;
bid.descriptionUrl = ad.impression_id;
bid.impression_id = ad.impression_id;
} else {
bid.ad = _renderCreative(ad.script, ad.impression_id);
Expand Down
1 change: 0 additions & 1 deletion modules/vertamediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ function getSize(requestSizes) {
function createBid(bidResponse) {
return {
requestId: bidResponse.requestId,
descriptionUrl: bidResponse.url,
creativeId: bidResponse.cmpId,
vastUrl: bidResponse.vastUrl,
height: bidResponse.height,
Expand Down
2 changes: 1 addition & 1 deletion src/adserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports.dfpAdserver = function (options, urlComponents) {
adserver.appendQueryParams = function() {
var bid = adserver.getWinningBidByCode();
if (bid) {
this.urlComponents.search.description_url = encodeURIComponent(bid.descriptionUrl);
this.urlComponents.search.description_url = encodeURIComponent(bid.vastUrl);
this.urlComponents.search.cust_params = getCustomParams(bid.adserverTargeting);
this.urlComponents.search.correlator = Date.now();
}
Expand Down
1 change: 0 additions & 1 deletion test/spec/modules/adxcgBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ describe('AdxcgAdapter', () => {
expect(result[0].creativeId).to.equal(42);
expect(result[0].cpm).to.equal(0.45);
expect(result[0].vastUrl).to.equal('vastContentUrl');
expect(result[0].descriptionUrl).to.equal('vastContentUrl');
expect(result[0].currency).to.equal('USD');
expect(result[0].netRevenue).to.equal(true);
expect(result[0].ttl).to.equal(300);
Expand Down
1 change: 0 additions & 1 deletion test/spec/modules/appnexusAstBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ describe('AppNexusAdapter', () => {

let result = spec.interpretResponse({ body: response }, {bidderRequest});
expect(result[0]).to.have.property('vastUrl');
expect(result[0]).to.have.property('descriptionUrl');
expect(result[0]).to.have.property('mediaType', 'video');
});

Expand Down
3 changes: 1 addition & 2 deletions test/spec/modules/indexExchangeBidAdapter_video_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const PREBID_REQUEST = { 'bidderCode': 'indexExchange', 'requestId': '6f4cb846-1

const CYGNUS_REQUEST_R_PARAM = { 'id': '16940e979c42d4', 'imp': [{ 'id': '2f4e1cc0f992f2', 'ext': { 'siteID': 6, 'sid': 'pr_1_1_s' }, 'video': { 'protocols': [2, 5, 3, 6], 'maxduration': 15, 'minduration': 0, 'startdelay': 0, 'linearity': 1, 'mimes': ['video/mp4', 'video/webm'], 'w': 640, 'h': 480 } }], 'site': { 'page': 'http://localhost:9876/' }};

const PREBID_RESPONSE = { 'bidderCode': 'indexExchange', 'width': 640, 'height': 480, 'statusMessage': 'Bid available', 'adId': '2f4e1cc0f992f2', 'code': 'indexExchange', 'cpm': 10, 'vastUrl': 'http://vast.url', 'descriptionUrl': 'http://vast.url' };
const PREBID_RESPONSE = { 'bidderCode': 'indexExchange', 'width': 640, 'height': 480, 'statusMessage': 'Bid available', 'adId': '2f4e1cc0f992f2', 'code': 'indexExchange', 'cpm': 10, 'vastUrl': 'http://vast.url' };

const CYGNUS_RESPONSE = { 'seatbid': [{ 'bid': [{ 'crid': '1', 'adomain': ['vastdsp.com'], 'adid': '1', 'impid': '2f4e1cc0f992f2', 'cid': '1', 'id': '1', 'ext': { 'vasturl': 'http://vast.url', 'errorurl': 'http://error.url', 'dspid': 1, 'pricelevel': '_1000', 'advbrandid': 75, 'advbrand': 'Nacho Momma' } }], 'seat': '1' }], 'cur': 'USD', 'id': '16940e979c42d4' };

Expand Down Expand Up @@ -944,7 +944,6 @@ describe('indexExchange adapter - Video', () => {
expect(response).to.have.property('statusMessage', PREBID_RESPONSE.statusMessage);
expect(response).to.have.property('cpm', PREBID_RESPONSE.cpm);
expect(response).to.have.property('vastUrl', PREBID_RESPONSE.vastUrl);
expect(response).to.have.property('descriptionUrl', PREBID_RESPONSE.descriptionUrl);
expect(response).to.have.property('width', PREBID_RESPONSE.width);
expect(response).to.have.property('height', PREBID_RESPONSE.height);
});
Expand Down
1 change: 0 additions & 1 deletion test/spec/modules/rubiconBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,6 @@ describe('the rubicon adapter', () => {
expect(bids[0].cpm).to.equal(1);
expect(bids[0].ttl).to.equal(300);
expect(bids[0].netRevenue).to.equal(false);
expect(bids[0].descriptionUrl).to.equal('a40fe16e-d08d-46a9-869d-2e1573599e0c');
expect(bids[0].vastUrl).to.equal(
'https://fastlane-adv.rubiconproject.com/v1/creative/a40fe16e-d08d-46a9-869d-2e1573599e0c.xml'
);
Expand Down
2 changes: 0 additions & 2 deletions test/spec/modules/vertamediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const serverResponse = {
'source': {'aid': 12345, 'pubId': 54321},
'bids': [{
'vastUrl': 'http://rtb.vertamedia.com/vast/?adid=44F2AEB9BFC881B3',
'descriptionUrl': '44F2AEB9BFC881B3',
'requestId': '2e41f65424c87c',
'url': '44F2AEB9BFC881B3',
'creative_id': 342516,
Expand Down Expand Up @@ -86,7 +85,6 @@ describe('vertamediaBidAdapter', () => {
const result = spec.interpretResponse({body: serverResponse}, {bidderRequest});
const eq = [{
vastUrl: 'http://rtb.vertamedia.com/vast/?adid=44F2AEB9BFC881B3',
descriptionUrl: '44F2AEB9BFC881B3',
requestId: '2e41f65424c87c',
creativeId: 342516,
mediaType: 'video',
Expand Down
1 change: 0 additions & 1 deletion test/spec/unit/pbjs_api_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,6 @@ describe('Unit: Prebid Module', function () {
'creative_id': 29681110,
'cpm': 10,
'vastUrl': 'http://www.simplevideoad.com/',
'descriptionUrl': 'http://www.simplevideoad.com/',
'responseTimestamp': 1462919239340,
'requestTimestamp': 1462919238919,
'bidder': 'appnexus',
Expand Down

0 comments on commit bceb74f

Please sign in to comment.