Skip to content

Commit

Permalink
Add support for meta.advertiserDomains to BB Adapter, addresses issue p…
Browse files Browse the repository at this point in the history
  • Loading branch information
K-JBoon committed Jun 3, 2021
1 parent d106691 commit 1f6ff37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/bluebillywigBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ const BB_HELPERS = {
if (!bidObject.vastUrl && bid.nurl && !bid.adm) { // ad markup is on win notice url, and adm is ommited according to OpenRTB 2.5
bidObject.vastUrl = bid.nurl;
}

bidObject.meta = bid.meta || {};
if (bid.adomain) { bidObject.meta.advertiserDomains = bid.adomain; }
return bidObject;
},
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions test/spec/modules/bluebillywigBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ describe('BlueBillywigAdapter', () => {
expect(bid.currency).to.equal(serverResponse.body.cur);
expect(bid.ttl).to.equal(BB_CONSTANTS.DEFAULT_TTL);

expect(bid).to.have.property('meta');
expect(bid.meta).to.have.property('advertiserDomains');
expect(bid.meta.advertiserDomains[0]).to.equal('bluebillywig.com');

expect(bid.publicationName).to.equal(validBidderRequest.bids[0].params.publicationName);
expect(bid.rendererCode).to.equal(validBidderRequest.bids[0].params.rendererCode);
expect(bid.accountId).to.equal(validBidderRequest.bids[0].params.accountId);
Expand Down

0 comments on commit 1f6ff37

Please sign in to comment.