From 527abc6ff0b91b85067addbfdf2774c0ba13905b Mon Sep 17 00:00:00 2001 From: Gleb Glushtsov Date: Wed, 7 Nov 2018 15:05:44 -0500 Subject: [PATCH 1/2] add prebidjs version to ttx request --- modules/33acrossBidAdapter.js | 8 ++++++++ test/spec/modules/33acrossBidAdapter_spec.js | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/modules/33acrossBidAdapter.js b/modules/33acrossBidAdapter.js index 497cf9f7110..01ebf5f3076 100644 --- a/modules/33acrossBidAdapter.js +++ b/modules/33acrossBidAdapter.js @@ -83,6 +83,14 @@ function _createServerRequest(bidRequest, gdprConsent) { gdpr: (gdprConsent.gdprApplies === true) ? 1 : 0 } }; + ttxRequest.ext = { + ttx: { + caller: { + 'name': 'prebidjs', + 'version': '$prebid.version$' + } + } + } // Finally, set the openRTB 'test' param if this is to be a test bid if (params.test === 1) { diff --git a/test/spec/modules/33acrossBidAdapter_spec.js b/test/spec/modules/33acrossBidAdapter_spec.js index c8f0421e1e6..6064ac2a378 100644 --- a/test/spec/modules/33acrossBidAdapter_spec.js +++ b/test/spec/modules/33acrossBidAdapter_spec.js @@ -58,6 +58,14 @@ describe('33acrossBidAdapter:', function () { ext: { gdpr: 0 } + }, + ext: { + ttx: { + caller: { + 'name': 'prebidjs', + 'version': '$prebid.version$' + } + } } }; From 959637fd33226ad43a5a602376bb423224fb6321 Mon Sep 17 00:00:00 2001 From: Gleb Glushtsov Date: Thu, 8 Nov 2018 09:12:13 -0500 Subject: [PATCH 2/2] send caller as an array --- modules/33acrossBidAdapter.js | 4 ++-- test/spec/modules/33acrossBidAdapter_spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/33acrossBidAdapter.js b/modules/33acrossBidAdapter.js index 01ebf5f3076..2ecab4013f9 100644 --- a/modules/33acrossBidAdapter.js +++ b/modules/33acrossBidAdapter.js @@ -85,10 +85,10 @@ function _createServerRequest(bidRequest, gdprConsent) { }; ttxRequest.ext = { ttx: { - caller: { + caller: [{ 'name': 'prebidjs', 'version': '$prebid.version$' - } + }] } } diff --git a/test/spec/modules/33acrossBidAdapter_spec.js b/test/spec/modules/33acrossBidAdapter_spec.js index 6064ac2a378..1fc77a7e14d 100644 --- a/test/spec/modules/33acrossBidAdapter_spec.js +++ b/test/spec/modules/33acrossBidAdapter_spec.js @@ -61,10 +61,10 @@ describe('33acrossBidAdapter:', function () { }, ext: { ttx: { - caller: { + caller: [{ 'name': 'prebidjs', 'version': '$prebid.version$' - } + }] } } };