Skip to content

Commit

Permalink
Criteo Bid Adapter: Update bidder DNS (#11700)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick McCann <patmmccann@gmail.com>
  • Loading branch information
leonardlabat and patmmccann authored Jun 5, 2024
1 parent 205e173 commit 11377dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/criteoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {ortb25Translator} from '../libraries/ortb2.5Translator/translator.js';
const GVLID = 91;
export const ADAPTER_VERSION = 37;
const BIDDER_CODE = 'criteo';
const CDB_ENDPOINT = 'https://bidder.criteo.com/openrtb_2_5/pbjs/auction/request';
const CDB_ENDPOINT = 'https://grid-bidder.criteo.com/openrtb_2_5/pbjs/auction/request';
const PROFILE_ID_INLINE = 207;
export const storage = getStorageManager({ bidderCode: BIDDER_CODE });
const LOG_PREFIX = 'Criteo: ';
Expand Down
12 changes: 6 additions & 6 deletions test/spec/modules/criteoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ describe('The Criteo bidding adapter', function () {
},
];
const request = spec.buildRequests(bidRequests, syncAddFPDToBidderRequest(bidderRequest));
expect(request.url).to.match(/^https:\/\/bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&im=1&debug=[01]&nolog=[01]$/);
expect(request.url).to.match(/^https:\/\/grid-bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&im=1&debug=[01]&nolog=[01]$/);
expect(request.method).to.equal('POST');
const ortbRequest = request.data;
expect(ortbRequest.site.page).to.equal(refererUrl);
Expand Down Expand Up @@ -896,7 +896,7 @@ describe('The Criteo bidding adapter', function () {
},
];
const request = spec.buildRequests(bidRequests, syncAddFPDToBidderRequest(bidderRequest));
expect(request.url).to.match(/^https:\/\/bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]&networkId=456$/);
expect(request.url).to.match(/^https:\/\/grid-bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]&networkId=456$/);
expect(request.method).to.equal('POST');
const ortbRequest = request.data;
expect(ortbRequest.site.page).to.equal(refererUrl);
Expand Down Expand Up @@ -956,7 +956,7 @@ describe('The Criteo bidding adapter', function () {
},
];
const request = spec.buildRequests(bidRequests, syncAddFPDToBidderRequest(bidderRequest));
expect(request.url).to.match(/^https:\/\/bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]&networkId=456$/);
expect(request.url).to.match(/^https:\/\/grid-bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]&networkId=456$/);
expect(request.method).to.equal('POST');
const ortbRequest = request.data;
expect(ortbRequest.site.page).to.equal(refererUrl);
Expand Down Expand Up @@ -1295,7 +1295,7 @@ describe('The Criteo bidding adapter', function () {
},
];
const request = spec.buildRequests(bidRequests, syncAddFPDToBidderRequest(bidderRequest));
expect(request.url).to.match(/^https:\/\/bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]$/);
expect(request.url).to.match(/^https:\/\/grid-bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]$/);
expect(request.method).to.equal('POST');
const ortbRequest = request.data;
expect(ortbRequest.imp).to.have.lengthOf(1);
Expand Down Expand Up @@ -1355,7 +1355,7 @@ describe('The Criteo bidding adapter', function () {
},
];
const request = spec.buildRequests(bidRequests, syncAddFPDToBidderRequest(bidderRequest));
expect(request.url).to.match(/^https:\/\/bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]$/);
expect(request.url).to.match(/^https:\/\/grid-bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]$/);
expect(request.method).to.equal('POST');
const ortbRequest = request.data;
expect(ortbRequest.imp[0].video.mimes).to.deep.equal(['video/mp4', 'video/x-flv']);
Expand Down Expand Up @@ -1399,7 +1399,7 @@ describe('The Criteo bidding adapter', function () {
}
];
const request = spec.buildRequests(bidRequests, syncAddFPDToBidderRequest(bidderRequest));
expect(request.url).to.match(/^https:\/\/bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]&networkId=456$/);
expect(request.url).to.match(/^https:\/\/grid-bidder\.criteo\.com\/openrtb_2_5\/pbjs\/auction\/request\?profileId=207&av=\d+&wv=[^&]+&cb=\d+&lsavail=[01]&debug=[01]&nolog=[01]&networkId=456$/);
expect(request.method).to.equal('POST');
const ortbRequest = request.data;
expect(ortbRequest.imp[0].video.mimes).to.deep.equal(['video/mp4', 'video/MPV', 'video/H264', 'video/webm', 'video/ogg']);
Expand Down

0 comments on commit 11377dd

Please sign in to comment.