Skip to content

Commit

Permalink
sends gpid into seedtag adapter payload (#11832)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangarbe committed Jun 19, 2024
1 parent 4fb10cd commit ede12d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/seedtagBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function buildBidRequest(validBidRequest) {
const bidRequest = {
id: validBidRequest.bidId,
transactionId: validBidRequest.ortb2Imp?.ext?.tid,
gpid: validBidRequest.ortb2Imp?.ext?.gpid,
sizes: validBidRequest.sizes,
supplyTypes: mediaTypes,
adUnitId: params.adUnitId,
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/seedtagBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function getSlotConfigs(mediaTypes, params) {
ortb2Imp: {
ext: {
tid: 'd704d006-0d6e-4a09-ad6c-179e7e758096',
gpid: 'some-gpid'
}
},
adUnitCode: adUnitCode,
Expand Down Expand Up @@ -299,6 +300,7 @@ describe('Seedtag Adapter', function () {
expect(data.ttfb).to.be.greaterThanOrEqual(0);

expect(data.bidRequests[0].adUnitCode).to.equal(adUnitCode);
expect(data.bidRequests[0].gpid).to.equal('some-gpid');
});

describe('GDPR params', function () {
Expand Down

0 comments on commit ede12d2

Please sign in to comment.