Skip to content

Commit

Permalink
Teads Bid Adapter:Remove auctionId from since it is not used anymore (p…
Browse files Browse the repository at this point in the history
…rebid#10098)

* Remove auctionId from Teads bid adapter since it is not used anymore

* UT auction Id not send in bid request
  • Loading branch information
github-ishara-chan-tung authored and Michele Nasti committed Aug 25, 2023
1 parent 2a4b0b5 commit b0256f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/teadsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ function buildRequestObject(bid) {
reqObj.placementId = parseInt(placementId, 10);
reqObj.pageId = parseInt(pageId, 10);
reqObj.adUnitCode = getBidIdParameter('adUnitCode', bid);
reqObj.auctionId = getBidIdParameter('auctionId', bid);
reqObj.transactionId = getBidIdParameter('transactionId', bid);
if (gpid) { reqObj.gpid = gpid; }
return reqObj;
Expand Down
7 changes: 7 additions & 0 deletions test/spec/modules/teadsBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ describe('teadsBidAdapter', () => {
expect(request.method).to.equal('POST');
});

it('should not send auctionId in bid request ', function() {
const request = spec.buildRequests(bidRequests, bidderResquestDefault);
const payload = JSON.parse(request.data);

expect(payload.data[0].auctionId).to.not.exist
});

it('should send US Privacy to endpoint', function() {
let usPrivacy = 'OHHHFCP1'
let bidderRequest = {
Expand Down

0 comments on commit b0256f0

Please sign in to comment.