Skip to content

Commit

Permalink
E-planning Bid Adapter: hostname modification (prebid#7474)
Browse files Browse the repository at this point in the history
* E-planning Bid Adapter hostname modification

* Change of currency constant name in E-planning bid adapter
  • Loading branch information
matiasnfuentes authored and Chris Pabst committed Jan 10, 2022
1 parent c5ac2b8 commit 459c6b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/eplanningBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export const storage = getStorageManager();

const BIDDER_CODE = 'eplanning';
const rnd = Math.random();
const DEFAULT_SV = 'ads.us.e-planning.net';
const DEFAULT_SV = 'pbjs.e-planning.net';
const DEFAULT_ISV = 'i.e-planning.net';
const PARAMS = ['ci', 'sv', 't', 'ml', 'sn'];
const DOLLARS = 'USD';
const DOLLAR_CODE = 'USD';
const NET_REVENUE = true;
const TTL = 120;
const NULL_SIZE = '1x1';
Expand Down Expand Up @@ -115,7 +115,7 @@ export const spec = {
ttl: TTL,
creativeId: ad.crid,
netRevenue: NET_REVENUE,
currency: DOLLARS,
currency: DOLLAR_CODE,
};
if (ad.adom) {
bidResponse.meta = {
Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/eplanningBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ describe('E-Planning Adapter', function () {

it('should create the url correctly', function () {
const url = spec.buildRequests(bidRequests, bidderRequest).url;
expect(url).to.equal('https://ads.us.e-planning.net/pbjs/1/' + CI + '/1/localhost/ROS');
expect(url).to.equal('https://pbjs.e-planning.net/pbjs/1/' + CI + '/1/localhost/ROS');
});

it('should return GET method', function () {
Expand Down Expand Up @@ -740,7 +740,7 @@ describe('E-Planning Adapter', function () {
hasLocalStorageStub.returns(false);
const response = spec.buildRequests(bidRequests, bidderRequest);

expect(response.url).to.equal('https://ads.us.e-planning.net/pbjs/1/' + CI + '/1/localhost/ROS');
expect(response.url).to.equal('https://pbjs.e-planning.net/pbjs/1/' + CI + '/1/localhost/ROS');
expect(response.data.vs).to.equal('F');

sinon.assert.notCalled(getLocalStorageSpy);
Expand All @@ -750,7 +750,7 @@ describe('E-Planning Adapter', function () {
it('should create the url correctly with LocalStorage', function() {
createElementVisible();
const response = spec.buildRequests(bidRequests, bidderRequest);
expect(response.url).to.equal('https://ads.us.e-planning.net/pbjs/1/' + CI + '/1/localhost/ROS');
expect(response.url).to.equal('https://pbjs.e-planning.net/pbjs/1/' + CI + '/1/localhost/ROS');

expect(response.data.vs).to.equal('F');

Expand Down

0 comments on commit 459c6b8

Please sign in to comment.