From 8607ef8529b517b2897337696318d05a5f0f58bd Mon Sep 17 00:00:00 2001 From: etargetse <40423120+etargetse@users.noreply.github.com> Date: Tue, 20 Oct 2020 17:07:44 +0200 Subject: [PATCH 1/3] adapter update Send response reason --- modules/etargetBidAdapter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/etargetBidAdapter.js b/modules/etargetBidAdapter.js index 5e07561044a..2f1613482e5 100644 --- a/modules/etargetBidAdapter.js +++ b/modules/etargetBidAdapter.js @@ -96,6 +96,7 @@ export const spec = { currency: data.win_cur, netRevenue: true, ttl: 360, + reason: data.reason, ad: data.banner, vastXml: data.vast_content, vastUrl: data.vast_link, From c98f43e8e64f6c4942f7ee5dafdc91654e14333a Mon Sep 17 00:00:00 2001 From: etargetse <40423120+etargetse@users.noreply.github.com> Date: Mon, 26 Oct 2020 08:35:10 +0100 Subject: [PATCH 2/3] Update etargetBidAdapter.js Adding optional response parameter --- modules/etargetBidAdapter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/etargetBidAdapter.js b/modules/etargetBidAdapter.js index 2f1613482e5..42c991a17a4 100644 --- a/modules/etargetBidAdapter.js +++ b/modules/etargetBidAdapter.js @@ -96,7 +96,7 @@ export const spec = { currency: data.win_cur, netRevenue: true, ttl: 360, - reason: data.reason, + reason: data.reason ? data.reason : 'none', ad: data.banner, vastXml: data.vast_content, vastUrl: data.vast_link, From 56a867c2b76f3fde3dabdc93c3f52a82f6c82375 Mon Sep 17 00:00:00 2001 From: etargetse <40423120+etargetse@users.noreply.github.com> Date: Wed, 28 Oct 2020 10:00:55 +0100 Subject: [PATCH 3/3] Update etargetBidAdapter_spec.js --- test/spec/modules/etargetBidAdapter_spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/spec/modules/etargetBidAdapter_spec.js b/test/spec/modules/etargetBidAdapter_spec.js index 4f5e0c224ec..2dbf6cd68c5 100644 --- a/test/spec/modules/etargetBidAdapter_spec.js +++ b/test/spec/modules/etargetBidAdapter_spec.js @@ -154,6 +154,7 @@ describe('etarget adapter', function () { assert.equal(result.height, 250); assert.equal(result.currency, 'EUR'); assert.equal(result.netRevenue, true); + assert.isNotNull(result.reason); assert.equal(result.ttl, 360); assert.equal(result.ad, ''); assert.equal(result.transactionId, '5f33781f-9552-4ca1');