Skip to content

Commit

Permalink
Admixer Bid Adapter: add meta key to response (prebid#6674)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmixerTech authored and umakajan committed May 6, 2021
1 parent 2a4cf4b commit dfe263c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/admixerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export const spec = {
currency: bidResponse.currency,
vastUrl: bidResponse.vastUrl,
dealId: bidResponse.dealId,
/**
* currently includes meta.advertiserDomains ; networkId ; advertiserId
*/
meta: bidResponse.meta,
};
bidResponses.push(bidResp);
});
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/admixerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ describe('AdmixerAdapter', function () {
'netRevenue': false,
'bidId': '5e4e763b6bc60b',
'dealId': 'asd123',
'meta': {'advertiserId': 123, 'networkId': 123, 'advertiserDomains': ['test.com']}
}]
}
};
Expand All @@ -122,6 +123,7 @@ describe('AdmixerAdapter', function () {
'netRevenue': ads[0].netRevenue,
'ttl': ads[0].ttl,
'dealId': ads[0].dealId,
'meta': {'advertiserId': 123, 'networkId': 123, 'advertiserDomains': ['test.com']}
}
];

Expand Down

0 comments on commit dfe263c

Please sign in to comment.