From 5c987779aa92685acccb7b6c4cfef95484ab96c4 Mon Sep 17 00:00:00 2001 From: Chris Sperandio Date: Thu, 23 Jun 2016 19:36:18 -0700 Subject: [PATCH 1/2] add kenshoo --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 8fda895..4b1c268 100644 --- a/lib/index.js +++ b/lib/index.js @@ -11,7 +11,8 @@ var parse = require('component-querystring').parse; */ var QUERYIDS = { btid: 'dataxu', - urid: 'millennial-media' + urid: 'millennial-media', + k_clickid: 'kenshoo' }; /** From c10dc08e6185817097aa5f8490d9bdc19fd7a9e3 Mon Sep 17 00:00:00 2001 From: Chris Sperandio Date: Thu, 23 Jun 2016 19:37:10 -0700 Subject: [PATCH 2/2] add test --- test/index.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/index.test.js b/test/index.test.js index bf59173..885f861 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -20,4 +20,10 @@ describe('ad-params', function() { assert.strictEqual(res.id, 'qwerqwer'); assert.strictEqual(res.type, 'millennial-media'); }); + + it('should parse kenshoo ad param', function() { + var res = ads('?k_clickid=qwerqwer&special=lkjlkj'); + assert.strictEqual(res.id, 'qwerqwer'); + assert.strictEqual(res.type, 'kenshoo'); + }); });