Skip to content

Commit f970727

Browse files
vadim-mazzherinveraneverah2p4x8
authored
showheroes-bs Bid Adapter: Add support for advertiserDomains (#7169)
* add ShowHeroes Adapter * ShowHeroes adapter - expanded outstream support * Revert "ShowHeroes adapter - expanded outstream support" This reverts commit bfcdb91. * ShowHeroes adapter - expanded outstream support * ShowHeroes adapter - fixes (#4222) * ShowHeroes adapter - banner and outstream fixes (#4222) * ShowHeroes adapter - description and outstream changes (#4222) * ShowHeroes adapter - increase test coverage and small fix * ShowHeroes Adapter - naming convention issue * Mixed AdUnits declaration support * ITDEV-4723 PrebidJS adapter support with SupplyChain module object * ITDEV-4723 Fix tests * ITDEV-4723 New entry point * showheroes-bsBidAdapter: Add support for advertiserDomains Co-authored-by: veranevera <[email protected]> Co-authored-by: Elizaveta Voziyanova <[email protected]>
1 parent 48f3133 commit f970727

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

modules/showheroes-bsBidAdapter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ function createBids(bidRes, reqData) {
166166
bidUnit.netRevenue = true;
167167
bidUnit.width = bid.size.width;
168168
bidUnit.height = bid.size.height;
169+
bidUnit.meta = {
170+
advertiserDomains: bid.adomain || []
171+
};
169172
if (bid.vastXml) {
170173
bidUnit.vastXml = bid.vastXml;
171174
bidUnit.adResponse = {

test/spec/modules/showheroes-bsBidAdapter_spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const bidderRequest = {
99
}
1010
}
1111

12+
const adomain = ['showheroes.com'];
13+
1214
const gdpr = {
1315
'gdprConsent': {
1416
'consentString': 'BOEFEAyOEFEAyAHABDENAI4AAAB9vABAASA',
@@ -301,6 +303,7 @@ describe('shBidAdapter', function () {
301303
'size': {'width': 640, 'height': 480},
302304
'vastTag': 'https:\/\/video-library.stage.showheroes.com\/commercial\/wrapper?player_id=47427aa0-f11a-4d24-abca-1295a46a46cd&ad_bidder=showheroes-bs&master_shadt=1&description_url=https%3A%2F%2Fbid-service.stage.showheroes.com%2Fvast%2Fad%2Fcache%2F4840b920-40e1-4e09-9231-60bbf088c8d6',
303305
'vastXml': vastXml,
306+
'adomain': adomain,
304307
};
305308

306309
const responseVideo = {
@@ -340,6 +343,9 @@ describe('shBidAdapter', function () {
340343
'ttl': 300,
341344
'adResponse': {
342345
'content': vastXml
346+
},
347+
'meta': {
348+
'advertiserDomains': adomain
343349
}
344350
}
345351
]

0 commit comments

Comments
 (0)