Skip to content

Commit

Permalink
Bucksense Bid Adapter: add adomain to adapter (#6779)
Browse files Browse the repository at this point in the history
* Update bucksenseBidAdapter.js

Added support for advertiserDomains

* Update bucksenseBidAdapter_spec.js

Co-authored-by: Patrick McCann <patmmccann@gmail.com>
  • Loading branch information
bkse-stefanodechicchis and patmmccann authored May 18, 2021
1 parent 4319b59 commit c198fa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/bucksenseBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const spec = {
var sCurrency = oResponse.currency || 'USD';
var bNetRevenue = oResponse.netRevenue || true;
var sAd = oResponse.ad || '';
var sAdomains = oResponse.adomains || [];

if (request && sRequestID.length == 0) {
utils.logInfo(WHO + ' interpretResponse() - use RequestID from Placments');
Expand All @@ -110,7 +111,10 @@ export const spec = {
creativeId: sCreativeID,
currency: sCurrency,
netRevenue: bNetRevenue,
ad: sAd
ad: sAd,
meta: {
advertiserDomains: sAdomains
}
};
bidResponses.push(bidResponse);
} else {
Expand Down
5 changes: 4 additions & 1 deletion test/spec/modules/bucksenseBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ describe('Bucksense Adapter', function() {
'creativeId': 'creative002',
'currency': 'USD',
'netRevenue': false,
'ad': '<div id=\"bks-banner\"><a href=\"https://www.bucksense.com\" target=\"_blank\"><img src=\"https://i.bksn.se/s/1334/c5acdc75ba096bk.jpg\" width=\"300\" height=\"250\"/></a></div>'
'ad': '<div id=\"bks-banner\"><a href=\"https://www.bucksense.com\" target=\"_blank\"><img src=\"https://i.bksn.se/s/1334/c5acdc75ba096bk.jpg\" width=\"300\" height=\"250\"/></a></div>',
'meta': {
'advertiserDomains': ['http://www.bucksense.com/']
}
}
};
});
Expand Down

0 comments on commit c198fa7

Please sign in to comment.