Skip to content

Commit

Permalink
change AppNexus endpoint to use ORTB (prebid#2532)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkendall07 authored and dluxemburg committed Jul 17, 2018
1 parent 6027c96 commit 6c63f9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/prebidServerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const availVendorDefaults = {
adapter: 'prebidServer',
cookieSet: false,
enabled: true,
endpoint: '//prebid.adnxs.com/pbs/v1/auction',
endpoint: '//prebid.adnxs.com/pbs/v1/openrtb2/auction',
syncEndpoint: '//prebid.adnxs.com/pbs/v1/cookie_sync',
timeout: 1000
},
Expand Down Expand Up @@ -637,7 +637,7 @@ const OPEN_RTB_PROTOCOL = {
* const bids = protocol().interpretResponse(response, bidRequests, requestedBidders);
*/
const protocolAdapter = () => {
const OPEN_RTB_PATH = 'openrtb2/auction';
const OPEN_RTB_PATH = '/openrtb2/';

const endpoint = (_s2sConfig && _s2sConfig.endpoint) || '';
const isOpenRtb = ~endpoint.indexOf(OPEN_RTB_PATH);
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/prebidServerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ describe('S2S Adapter', () => {
expect(vendorConfig.cookieSet).to.be.false;
expect(vendorConfig.cookieSetUrl).to.be.undefined;
expect(vendorConfig.enabled).to.be.true;
expect(vendorConfig).to.have.property('endpoint', '//prebid.adnxs.com/pbs/v1/auction');
expect(vendorConfig).to.have.property('endpoint', '//prebid.adnxs.com/pbs/v1/openrtb2/auction');
expect(vendorConfig).to.have.property('syncEndpoint', '//prebid.adnxs.com/pbs/v1/cookie_sync');
expect(vendorConfig).to.have.property('timeout', 750);
});
Expand Down

0 comments on commit 6c63f9f

Please sign in to comment.