Skip to content

Commit

Permalink
add 'x_source.tid' to rubicon requests (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich authored Dec 6, 2017
1 parent 9355c07 commit ec3519e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const spec = {
resolution: _getScreenResolution(),
account_id: params.accountId,
integration: INTEGRATION,
'x_source.tid': bidRequest.transactionId,
timeout: bidderRequest.timeout - (Date.now() - bidderRequest.auctionStart + TIMEOUT_BUFFER),
stash_creatives: true,
ae_pass_through_parameters: params.video.aeParams,
Expand Down Expand Up @@ -192,7 +193,7 @@ export const spec = {
'rp_floor', floor,
'rp_secure', isSecure() ? '1' : '0',
'tk_flint', INTEGRATION,
'tid', bidRequest.transactionId,
'x_source.tid', bidRequest.transactionId,
'p_screen_res', _getScreenResolution(),
'kw', keywords,
'tk_user_key', userId
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/rubiconBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('the rubicon adapter', () => {
'rp_secure': /[01]/,
'rand': '0.1',
'tk_flint': INTEGRATION,
'tid': 'd45dd707-a418-42ec-b8a7-b70a6c6fab0b',
'x_source.tid': 'd45dd707-a418-42ec-b8a7-b70a6c6fab0b',
'p_screen_res': /\d+x\d+/,
'tk_user_key': '12346',
'kw': 'a,b,c',
Expand Down Expand Up @@ -451,6 +451,7 @@ describe('the rubicon adapter', () => {
expect(post.resolution).to.match(/\d+x\d+/);
expect(post.account_id).to.equal('14062');
expect(post.integration).to.equal(INTEGRATION);
expect(post['x_source.tid']).to.equal('d45dd707-a418-42ec-b8a7-b70a6c6fab0b');
expect(post).to.have.property('timeout').that.is.a('number');
expect(post.timeout < 5000).to.equal(true);
expect(post.stash_creatives).to.equal(true);
Expand Down

0 comments on commit ec3519e

Please sign in to comment.