Skip to content

Commit

Permalink
Updated rubicon video bid endpoint in source and test files
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bridges authored and snapwich committed Mar 30, 2017
1 parent 2262123 commit 9b035e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/adapters/rubicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getIntegration() {

// use protocol relative urls for http or https
const FASTLANE_ENDPOINT = '//fastlane.rubiconproject.com/a/api/fastlane.json';
const VIDEO_ENDPOINT = '//optimized-by-adv.rubiconproject.com/v1/auction/video';
const VIDEO_ENDPOINT = '//fastlane-adv.rubiconproject.com/v1/auction/video';

const TIMEOUT_BUFFER = 500;

Expand Down
6 changes: 3 additions & 3 deletions test/spec/adapters/rubicon_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ describe('the rubicon adapter', () => {
let url = request.url;
let post = JSON.parse(request.requestBody);

expect(url).to.equal('//optimized-by-adv.rubiconproject.com/v1/auction/video');
expect(url).to.equal('//fastlane-adv.rubiconproject.com/v1/auction/video');

expect(post).to.have.property('page_url').that.is.a('string');
expect(post.resolution).to.match(/\d+x\d+/);
Expand Down Expand Up @@ -659,7 +659,7 @@ describe('the rubicon adapter', () => {
'site_id': 88888,
'zone_id': 54321,
'creative_type': 'video',
'creative_depot_url': 'https://optimized-by-adv.rubiconproject.com/v1/creative/a40fe16e-d08d-46a9-869d-2e1573599e0c.xml',
'creative_depot_url': 'https://fastlane-adv.rubiconproject.com/v1/creative/a40fe16e-d08d-46a9-869d-2e1573599e0c.xml',
'ad_id': 999999,
'size_id': 201,
'advertiser': 12345
Expand All @@ -684,7 +684,7 @@ describe('the rubicon adapter', () => {
expect(bids[0].cpm).to.equal(1);
expect(bids[0].descriptionUrl).to.equal('a40fe16e-d08d-46a9-869d-2e1573599e0c');
expect(bids[0].vastUrl).to.equal(
'https://optimized-by-adv.rubiconproject.com/v1/creative/a40fe16e-d08d-46a9-869d-2e1573599e0c.xml'
'https://fastlane-adv.rubiconproject.com/v1/creative/a40fe16e-d08d-46a9-869d-2e1573599e0c.xml'
);
expect(bids[0].impression_id).to.equal('a40fe16e-d08d-46a9-869d-2e1573599e0c');

Expand Down

0 comments on commit 9b035e6

Please sign in to comment.