From 948ba907c76b76b6bb00f8ab1ec6e8533d11111e Mon Sep 17 00:00:00 2001 From: Jeremy Sadwith Date: Wed, 5 Jan 2022 15:21:39 -0500 Subject: [PATCH 1/3] Fix issue with double-array for advertiserDomains --- modules/kargoBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kargoBidAdapter.js b/modules/kargoBidAdapter.js index 7bb8e580f2a..474e8213d89 100644 --- a/modules/kargoBidAdapter.js +++ b/modules/kargoBidAdapter.js @@ -74,7 +74,7 @@ export const spec = { if (adUnit.metadata && adUnit.metadata.landingPageDomain) { meta = { clickUrl: adUnit.metadata.landingPageDomain, - advertiserDomains: [adUnit.metadata.landingPageDomain] + advertiserDomains: adUnit.metadata.landingPageDomain }; } bidResponses.push({ From 43d14349fda1b14823d5841b151ea0de6d034292 Mon Sep 17 00:00:00 2001 From: Jeremy Sadwith Date: Wed, 5 Jan 2022 15:39:10 -0500 Subject: [PATCH 2/3] Updated test to reflect correct advertiserDomains rray --- test/spec/modules/kargoBidAdapter_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/modules/kargoBidAdapter_spec.js b/test/spec/modules/kargoBidAdapter_spec.js index 43968bbef5a..1eb514e87d2 100644 --- a/test/spec/modules/kargoBidAdapter_spec.js +++ b/test/spec/modules/kargoBidAdapter_spec.js @@ -484,7 +484,7 @@ describe('kargo adapter tests', function () { height: 250, targetingCustom: 'dmpmptest1234', metadata: { - landingPageDomain: 'https://foobar.com' + landingPageDomain: ['https://foobar.com'] } }, 3: { From be8d4c1218e5f9539cf323a568cdb9e3fb22506a Mon Sep 17 00:00:00 2001 From: Jeremy Sadwith Date: Wed, 5 Jan 2022 15:59:03 -0500 Subject: [PATCH 3/3] clickUrl to pull first advertiserDomain --- modules/kargoBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kargoBidAdapter.js b/modules/kargoBidAdapter.js index 474e8213d89..ff56c97e7b7 100644 --- a/modules/kargoBidAdapter.js +++ b/modules/kargoBidAdapter.js @@ -73,7 +73,7 @@ export const spec = { let meta; if (adUnit.metadata && adUnit.metadata.landingPageDomain) { meta = { - clickUrl: adUnit.metadata.landingPageDomain, + clickUrl: adUnit.metadata.landingPageDomain[0], advertiserDomains: adUnit.metadata.landingPageDomain }; }