From b4c2552aa1bc847c37b0902f8befee33399fc984 Mon Sep 17 00:00:00 2001 From: cs83 Date: Thu, 22 Jul 2021 15:49:06 +0300 Subject: [PATCH] Smartico Bid Adapter: Add meta fields to interpreted response object (#7203) * Adding smartico adapter * bug #6486 fix, added maintainer email * bug #6486 fix, modified test parameters * bug #6486 fix, modified test parameters #2 * #6486 applied review related updates & fixes * #6486 applied review related updates & fixes #2 * #6486 applied review related updates & fixes #3 * samrtico adapter bug fix * smartico adapter unit test update after bug fixing * smartico adapter bug fix #2 * smartico adapter bug fix #3 * fix linting errors * update for version 5.0: meta.advertiserDomains is added * update for version 5.0: meta.advertiserDomains is added (unit test) update * Update smarticoBidAdapter_spec.js Co-authored-by: Dmitri Co-authored-by: Chris Huie Co-authored-by: Patrick McCann --- modules/smarticoBidAdapter.js | 6 +++++- test/spec/modules/smarticoBidAdapter_spec.js | 13 +++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/modules/smarticoBidAdapter.js b/modules/smarticoBidAdapter.js index e923ed98e16..2399a12f932 100644 --- a/modules/smarticoBidAdapter.js +++ b/modules/smarticoBidAdapter.js @@ -106,7 +106,11 @@ export const spec = { netRevenue: !!ad.netRevenue, currency: ad.currency, ttl: ad.ttl, - ad: html + ad: html, + meta: { + advertiserDomains: ad.domains, + advertiserName: ad.title + } } bidResponses.push(bidObject); } diff --git a/test/spec/modules/smarticoBidAdapter_spec.js b/test/spec/modules/smarticoBidAdapter_spec.js index 75402704e13..104fa22a851 100644 --- a/test/spec/modules/smarticoBidAdapter_spec.js +++ b/test/spec/modules/smarticoBidAdapter_spec.js @@ -81,7 +81,9 @@ describe('smarticoBidAdapter', function () { ttl: 30, bannerFormatWidth: 300, bannerFormatHeight: 250, - bannerFormatAlias: 'medium_rectangle' + bannerFormatAlias: 'medium_rectangle', + domains: ['www.advertiser.com'], + title: 'Advertiser' }] }; let expectedResponse = [{ @@ -93,7 +95,11 @@ describe('smarticoBidAdapter', function () { currency: 'EUR', netRevenue: false, // gross ttl: 30, - ad: '