Skip to content

Commit

Permalink
map tripleliftBidAdapter.js tl_source to bid.meta.mediaType (prebid#6303
Browse files Browse the repository at this point in the history
)
  • Loading branch information
patmmccann authored and stsepelin committed May 28, 2021
1 parent fd86724 commit 40d4e2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/tripleliftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,14 @@ function _buildResponseObject(bidderRequest, bid) {
if (bid.adomain && bid.adomain.length) {
bidResponse.meta.advertiserDomains = bid.adomain;
}

if (bid.tl_source && bid.tl_source == 'hdx') {
bidResponse.meta.mediaType = 'banner';
}

if (bid.tl_source && bid.tl_source == 'tlx') {
bidResponse.meta.mediaType = 'native';
}
};
return bidResponse;
}
Expand Down

0 comments on commit 40d4e2c

Please sign in to comment.