Skip to content

Commit

Permalink
Brightcom Bid Adapter: handle meta.advertiserDomains (prebid#6905)
Browse files Browse the repository at this point in the history
  • Loading branch information
prBigBrother authored and agrandes-tappx committed Sep 29, 2021
1 parent 13f5313 commit 1143435
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 4 additions & 1 deletion modules/brightcomBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ function interpretResponse(serverResponse) {
netRevenue: true,
mediaType: BANNER,
ad: _getAdMarkup(brightcomBid),
ttl: 60
ttl: 60,
meta: {
advertiserDomains: brightcomBid && brightcomBid.adomain ? brightcomBid.adomain : []
}
});
});
}
Expand Down
13 changes: 10 additions & 3 deletions test/spec/modules/brightcomBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ describe('brightcomBidAdapter', function() {
'nurl': '<!-- NURL -->',
'adm': '<!-- Creative -->',
'w': 300,
'h': 250
'h': 250,
'adomain': ['example.com']
}]
}]
}
Expand All @@ -265,7 +266,10 @@ describe('brightcomBidAdapter', function() {
'netRevenue': true,
'mediaType': 'banner',
'ad': `<!-- Creative --><div style="position:absolute;left:0px;top:0px;visibility:hidden;"><img src="${encodeURI('<!-- NURL -->')}"></div>`,
'ttl': 60
'ttl': 60,
'meta': {
'advertiserDomains': ['example.com']
}
}];

let result = spec.interpretResponse(response);
Expand All @@ -283,7 +287,10 @@ describe('brightcomBidAdapter', function() {
'netRevenue': true,
'mediaType': 'banner',
'ad': `<!-- Creative --><div style="position:absolute;left:0px;top:0px;visibility:hidden;"><img src="${encodeURI('<!-- NURL -->')}"></div>`,
'ttl': 60
'ttl': 60,
'meta': {
'advertiserDomains': ['example.com']
}
}];

let result = spec.interpretResponse(response);
Expand Down

0 comments on commit 1143435

Please sign in to comment.