From 2477e86fb606ca263cfd4c9e83fb8c20f105eb80 Mon Sep 17 00:00:00 2001 From: sdao-tl <49252703+sdao-tl@users.noreply.github.com> Date: Wed, 22 Apr 2020 13:02:27 -0700 Subject: [PATCH] Triplelift: expose tl_souce in bid response (#5139) * expose tl_souce in bid response * update TLL to 300 Co-authored-by: Sy Dao --- modules/tripleliftBidAdapter.js | 3 ++- .../spec/modules/tripleliftBidAdapter_spec.js | 19 +++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/modules/tripleliftBidAdapter.js b/modules/tripleliftBidAdapter.js index f232915f8f2..8b21f334233 100644 --- a/modules/tripleliftBidAdapter.js +++ b/modules/tripleliftBidAdapter.js @@ -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; diff --git a/test/spec/modules/tripleliftBidAdapter_spec.js b/test/spec/modules/tripleliftBidAdapter_spec.js index 428d92345d9..675b8b6c532 100644 --- a/test/spec/modules/tripleliftBidAdapter_spec.js +++ b/test/spec/modules/tripleliftBidAdapter_spec.js @@ -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', } ] } @@ -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: { @@ -352,6 +354,7 @@ describe('triplelift adapter', function () { dealId: '', currency: 'USD', ttl: 33, + tl_source: 'tlx', } ]; let result = tripleliftAdapterSpec.interpretResponse(response, {bidderRequest}); @@ -369,7 +372,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', }, { imp_id: 0, @@ -377,7 +381,8 @@ describe('triplelift adapter', function () { 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', } ] } @@ -393,7 +398,8 @@ 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, @@ -401,7 +407,8 @@ describe('triplelift adapter', function () { 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: {