Skip to content

Commit

Permalink
Zeta Global Ssp Adapter: add bcat and badv to payload (prebid#12228)
Browse files Browse the repository at this point in the history
  • Loading branch information
orazumov-zeta authored Sep 16, 2024
1 parent 782f6d5 commit 1f3b684
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/zeta_global_sspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ export const spec = {
payload.tmax = bidderRequest.timeout;
}

if (bidderRequest?.ortb2?.bcat) {
payload.bcat = bidderRequest.ortb2.bcat;
}

if (bidderRequest?.ortb2?.badv) {
payload.badv = bidderRequest.ortb2.badv;
}

provideEids(validBidRequests[0], payload);
provideSegments(bidderRequest, payload);
const url = params.sid ? ENDPOINT_URL.concat('?sid=', params.sid) : ENDPOINT_URL;
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/zeta_global_sspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ describe('Zeta Ssp Bid Adapter', function () {
userIdAsEids: eids,
timeout: 500,
ortb2: {
bcat: ['CAT1'],
badv: ['test1.com'],
site: {
inventorypartnerdomain: 'disqus.com'
},
Expand Down Expand Up @@ -719,5 +721,7 @@ describe('Zeta Ssp Bid Adapter', function () {

expect(payload.site.page).to.eql('zetaglobal.com/page');
expect(payload.site.inventorypartnerdomain).to.eql('disqus.com');
expect(payload.bcat).to.eql(['CAT1']);
expect(payload.badv).to.eql(['test1.com']);
});
});

0 comments on commit 1f3b684

Please sign in to comment.