Skip to content

Commit 8930be4

Browse files
Brandon LingwillchapincolbertkdavidwoodsandersenKevin Zhou
authored
[Triplelift] Add advertiserDomains support (#5993)
* Add IdentityLink support and fix UnifiedId. It appears we've been looking for UnifiedId userIds on the bidderRequest object, when they are found on bidRequests. This commit fixes that error, and adds support for IdentityLink. * change maintainer email to group * TripleLift: Sending schain (#1) * Sending schain * null -> undefined * Hardcode sync endpoint protocol * Switch to EB2 sync endpoint * Add support for image based user syncing * Rename endpoint variable * Add assertion * Add CCPA query param * Simplify check for usPrivacy argument * put advertiser name in the bid.meta field if it exists * update unit tests with meta.advertiserName field * Triplelift: FPD key value pair support (#5) * Triplelift: Add support for global fpd * don't filter fpd * adds coppa support back in * add gvlid, update validation method, add unit tests * remove advertiserDomains logic * typo * update _buildResponseObject to use new instream validation * add advertiserDomains support Co-authored-by: Will Chapin <[email protected]> Co-authored-by: colbertk <[email protected]> Co-authored-by: David Andersen <[email protected]> Co-authored-by: colbertk <[email protected]> Co-authored-by: Kevin Zhou <[email protected]> Co-authored-by: kzhouTL <[email protected]> Co-authored-by: Sy Dao <[email protected]> Co-authored-by: sdao-tl <[email protected]>
1 parent cebae4a commit 8930be4

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

modules/tripleliftBidAdapter.js

+4
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ function _buildResponseObject(bidderRequest, bid) {
293293
if (bid.advertiser_name) {
294294
bidResponse.meta.advertiserName = bid.advertiser_name;
295295
}
296+
297+
if (bid.adomain && bid.adomain.length) {
298+
bidResponse.meta.advertiserDomains = bid.adomain;
299+
}
296300
};
297301
return bidResponse;
298302
}

test/spec/modules/tripleliftBidAdapter_spec.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,8 @@ describe('triplelift adapter', function () {
638638
ad: 'ad-markup',
639639
iurl: 'https://s.adroll.com/a/IYR/N36/IYRN366MFVDITBAGNNT5U6.jpg',
640640
tl_source: 'tlx',
641-
advertiser_name: 'fake advertiser name'
641+
advertiser_name: 'fake advertiser name',
642+
adomain: ['basspro.com', 'internetalerts.org']
642643
},
643644
{
644645
imp_id: 1,
@@ -747,6 +748,13 @@ describe('triplelift adapter', function () {
747748
expect(result[0].meta.advertiserName).to.equal('fake advertiser name');
748749
expect(result[1].meta).to.not.have.key('advertiserName');
749750
});
751+
752+
it('should include the advertiser domain array in the meta field if available', function () {
753+
let result = tripleliftAdapterSpec.interpretResponse(response, {bidderRequest});
754+
expect(result[0].meta.advertiserDomains[0]).to.equal('basspro.com');
755+
expect(result[0].meta.advertiserDomains[1]).to.equal('internetalerts.org');
756+
expect(result[1].meta).to.not.have.key('advertiserDomains');
757+
});
750758
});
751759

752760
describe('getUserSyncs', function() {

0 commit comments

Comments
 (0)