Skip to content

Commit

Permalink
Automatad Bid Adapter: Add meta.advertiserDomains to bid response (#6509
Browse files Browse the repository at this point in the history
)


* added bid meta with advertiserDomains
  • Loading branch information
kanchika-kapoor authored Apr 1, 2021
1 parent 108a3a6 commit 7f9f0a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/automatadBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export const spec = {
requestId: bid.impid,
cpm: bid.price,
ad: bid.adm,
adDomain: bid.adomain[0],
meta: {
advertiserDomains: bid.adomain
},
currency: DEFAULT_CURRENCY,
ttl: DEFAULT_BID_TTL,
creativeId: bid.crid,
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/automatadBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ describe('automatadBidAdapter', function () {
it('should get the correct bid response', function () {
let result = spec.interpretResponse(expectedResponse[0])
expect(result).to.be.an('array').that.is.not.empty
expect(result[0].meta.advertiserDomains[0]).to.equal('someAdDomain');
})

it('should interpret multiple bids in seatbid', function () {
Expand Down

0 comments on commit 7f9f0a2

Please sign in to comment.