Skip to content

Commit 5ce64c4

Browse files
asurovenko-zetasurovenkoAlexey Surovenko
authored andcommitted
ZetaGlobalSsp Bid Adapter: provide tagid from params (prebid#9764)
* ZetaGlobalSsp: provide tagid from params * fix test --------- Co-authored-by: Surovenko Alexey <[email protected]> Co-authored-by: Alexey Surovenko <[email protected]>
1 parent 90fcee7 commit 5ce64c4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

modules/zeta_global_sspBidAdapter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export const spec = {
7777
id: request.bidId,
7878
secure: secure
7979
};
80+
if (params.tagid) {
81+
impData.tagid = params.tagid;
82+
}
8083
if (request.mediaTypes) {
8184
for (const mediaType in request.mediaTypes) {
8285
switch (mediaType) {

test/spec/modules/zeta_global_sspBidAdapter_spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ describe('Zeta Ssp Bid Adapter', function () {
5151
},
5252
sid: 'publisherId',
5353
shortname: 'test_shortname',
54+
tagid: 'test_tag_id',
5455
site: {
5556
page: 'testPage'
5657
},
@@ -396,4 +397,11 @@ describe('Zeta Ssp Bid Adapter', function () {
396397

397398
expect(payload.source.ext.schain).to.eql(schain);
398399
});
400+
401+
it('Test tagid provided', function () {
402+
const request = spec.buildRequests(bannerRequest, bannerRequest[0]);
403+
const payload = JSON.parse(request.data);
404+
405+
expect(payload.imp[0].tagid).to.eql(params.tagid);
406+
});
399407
});

0 commit comments

Comments
 (0)