Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add adomain to bid.meta in telaria adapter #5400

Merged
merged 6 commits into from
Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions modules/telariaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ function createBid(status, reqBid, response, width, height, bidderCode) {
});
}

bid.meta = bid.meta || {};
if (response && response.adomain && response.adomain.length > 0) {
bid.meta.advertiserDomains = response.adomain;
}

return bid;
}

Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/telariaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ describe('TelariaAdapter', () => {
it('should get correct bid response', () => {
let expectedResponseKeys = ['bidderCode', 'width', 'height', 'statusMessage', 'adId', 'mediaType', 'source',
'getStatusCode', 'getSize', 'requestId', 'cpm', 'creativeId', 'vastXml',
'vastUrl', 'currency', 'netRevenue', 'ttl', 'ad'];
'vastUrl', 'currency', 'netRevenue', 'ttl', 'ad', 'meta'];

let bidRequest = spec.buildRequests(stub, BIDDER_REQUEST)[0];
bidRequest.bidId = '1234';
Expand Down