Skip to content

Commit

Permalink
updated feedad adapter to use live system
Browse files Browse the repository at this point in the history
  • Loading branch information
couchcrew-thomas committed Jun 7, 2019
1 parent 138d1ff commit e4c7214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/feedadBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const TAG = '[FeedAd]';
*/
const PLACEMENT_ID_PATTERN = /^(([a-z0-9])+[-_]?)+$/;

const API_ENDPOINT = 'https://feedad-backend-dev.appspot.com';
const API_ENDPOINT = 'https://api.feedad.com';
const API_PATH_BID_REQUEST = '/1/prebid/web/bids';
const API_PATH_TRACK_REQUEST = '/1/prebid/web/events';

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/feedadBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('FeedAdAdapter', function () {
params: {clientToken: 'clientToken', placementId: 'placement-id'}
};
let result = spec.buildRequests([bid], bidderRequest);
expect(result.url).to.equal('https://feedad-backend-dev.appspot.com/1/prebid/web/bids');
expect(result.url).to.equal('https://api.feedad.com/1/prebid/web/bids');
});
it('should specify the content type explicitly', function () {
let bid = {
Expand Down Expand Up @@ -252,12 +252,12 @@ describe('FeedAdAdapter', function () {

describe('interpretResponse', function () {
const body = [{
foo: "bar",
foo: 'bar',
sub: {
obj: 5
}
}, {
bar: "foo"
bar: 'foo'
}];

it('should convert string bodies to JSON', function () {
Expand Down Expand Up @@ -415,7 +415,7 @@ describe('FeedAdAdapter', function () {
subject(data, xhr);
expect(xhr.callCount).to.equal(1);
let call = xhr.getCall(0);
expect(call.args[0]).to.equal('https://feedad-backend-dev.appspot.com/1/prebid/web/events');
expect(call.args[0]).to.equal('https://api.feedad.com/1/prebid/web/events');
expect(call.args[1]).to.be.null;
expect(JSON.parse(call.args[2])).to.deep.equal(expectedData);
expect(call.args[3]).to.deep.equal({
Expand Down

0 comments on commit e4c7214

Please sign in to comment.