Skip to content

Commit

Permalink
Merge pull request #17 from 33Across/oculus-66-add-prebidjs-version-t…
Browse files Browse the repository at this point in the history
…o-ttx-request

add prebidjs version to ttx request
  • Loading branch information
glebglushtsov authored Nov 8, 2018
2 parents 7219753 + 959637f commit 2b347c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/33acrossBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 8 additions & 0 deletions test/spec/modules/33acrossBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ describe('33acrossBidAdapter:', function () {
ext: {
gdpr: 0
}
},
ext: {
ttx: {
caller: [{
'name': 'prebidjs',
'version': '$prebid.version$'
}]
}
}
};

Expand Down

0 comments on commit 2b347c1

Please sign in to comment.