Skip to content

Commit

Permalink
MgidX Bid Adapter : fix EU domain (prebid#12220)
Browse files Browse the repository at this point in the history
* new adapter - MgidX

* add new required param host

* rem host, add region

* MGIDX Adapter: update

* add gpid to imp ext

* fix eu domain

---------

Co-authored-by: Evgeny Nagorny <[email protected]>
Co-authored-by: xmgiddev <>
Co-authored-by: gaudeamus <[email protected]>
  • Loading branch information
3 people authored Sep 10, 2024
1 parent 657228d commit 6429318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/mgidXBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const buildRequests = (validBidRequests = [], bidderRequest = {}) => {
const region = validBidRequests[0].params?.region;

if (region === 'eu') {
request.url = AD_URL.replace('#{REGION}#', 'eu');
request.url = AD_URL.replace('#{REGION}#', 'eu-x');
} else {
request.url = AD_URL.replace('#{REGION}#', 'us-east-x');
}
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/mgidXBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('MGIDXBidAdapter', function () {
it('Returns valid EU URL', function () {
bids[0].params.region = 'eu';
serverRequest = spec.buildRequests(bids, bidderRequest);
expect(serverRequest.url).to.equal('https://eu.mgid.com/pbjs');
expect(serverRequest.url).to.equal('https://eu-x.mgid.com/pbjs');
});

it('Returns valid EAST URL', function () {
Expand Down

0 comments on commit 6429318

Please sign in to comment.