Skip to content

Commit

Permalink
Triplelift: expose tl_souce in bid response (prebid#5139)
Browse files Browse the repository at this point in the history
* expose tl_souce in bid response

* update TLL to 300

Co-authored-by: Sy Dao <iam.sydao@gmail.com>
  • Loading branch information
2 people authored and iggyfisk committed Jun 22, 2020
1 parent a3a7467 commit 0b7362c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion modules/tripleliftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ function _buildResponseObject(bidderRequest, bid) {
creativeId: creativeId,
dealId: dealId,
currency: 'USD',
ttl: 33,
ttl: 300,
tl_source: bid.tl_source,
};
};
return bidResponse;
Expand Down
19 changes: 13 additions & 6 deletions test/spec/modules/tripleliftBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ describe('triplelift adapter', function () {
width: 300,
height: 250,
ad: 'ad-markup',
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg'
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
tl_source: 'tlx',
}
]
}
Expand All @@ -327,7 +328,8 @@ describe('triplelift adapter', function () {
width: 300,
height: 250,
ad: 'ad-markup',
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg'
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
tl_source: 'tlx',
}
],
refererInfo: {
Expand All @@ -352,6 +354,7 @@ describe('triplelift adapter', function () {
dealId: '',
currency: 'USD',
ttl: 33,
tl_source: 'tlx',
}
];
let result = tripleliftAdapterSpec.interpretResponse(response, {bidderRequest});
Expand All @@ -369,15 +372,17 @@ describe('triplelift adapter', function () {
width: 300,
height: 250,
ad: 'ad-markup',
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg'
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
tl_source: 'tlx',
},
{
imp_id: 0,
cpm: 1.9,
width: 300,
height: 600,
ad: 'ad-markup-2',
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg'
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
tl_source: 'tlx',
}
]
}
Expand All @@ -393,15 +398,17 @@ describe('triplelift adapter', function () {
width: 300,
height: 600,
ad: 'ad-markup',
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg'
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
tl_source: 'tlx',
},
{
imp_id: 0,
cpm: 1.9,
width: 300,
height: 250,
ad: 'ad-markup-2',
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg'
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
tl_source: 'tlx',
}
],
refererInfo: {
Expand Down

0 comments on commit 0b7362c

Please sign in to comment.