-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TheMediaGrid & TrustX bid adapters: reformat first party data #8146
Merged
Merged
Changes from 101 commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
94d2b3a
Added TheMediaGridNM Bid Adapter
TheMediaGrid 3ba8fd8
Updated required params for TheMediaGridNM Bid Adapter
TheMediaGrid b830678
Update TheMediGridNM Bid Adapter
TheMediaGrid 9675d02
Fix tests for TheMediaGridNM Bid Adapter
TheMediaGrid 65cb00f
Merge remote-tracking branch 'upstream/master'
TheMediaGrid f1cba4a
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 52e593c
Fixes after review for TheMediaGridNM Bid Adapter
TheMediaGrid 7b99287
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 83fb2b4
Add support of multi-format in TheMediaGrid Bid Adapter
TheMediaGrid 926f4d9
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 66f2ac8
Update sync url for grid and gridNM Bid Adapters
TheMediaGrid b2fb704
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 4fcf522
TheMediaGrid Bid Adapter: added keywords adUnit parameter
TheMediaGrid 6906f1b
Merge remote-tracking branch 'upstream/master'
TheMediaGrid bfe4f5e
Update TheMediaGrid Bid Adapter to support keywords from config
TheMediaGrid d2c199b
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 64b5b8d
Implement new request format for TheMediaGrid Bid Adapter
TheMediaGrid ef493f7
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 4481d01
Merge remote-tracking branch 'upstream/master'
TheMediaGrid faa9bfb
Fix jwpseg params for TheMediaGrid Bid Adapter
TheMediaGrid dc645c7
Update unit tests for The Media Grid Bid Adapter
TheMediaGrid 340cae4
Fix typo in TheMediaGrid Bid Adapter
TheMediaGrid 6fa4e21
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 250601e
Merge remote-tracking branch 'upstream/master'
TheMediaGrid a4904d6
Added test for jwTargeting in TheMediaGrid Bid Adapter
TheMediaGrid dfef5e1
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 1644021
The new request format was made by default in TheMediaGrid Bid Adapter
TheMediaGrid 54237d7
Update userId format in ad request for TheMediaGrid Bid Adapter
TheMediaGrid a8c7096
Added bidFloor parameter for TheMediaGrid Bid Adapter
TheMediaGrid e9fb25d
Fix for review TheMediaGrid Bid Adapter
TheMediaGrid 9039a79
Support floorModule in TheMediaGrid Bid Adapter
TheMediaGrid 07a13b2
Merge remote-tracking branch 'upstream/master'
TheMediaGrid aea2b2e
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 2347817
Fix empty bidfloor for TheMediaGrid Bid Adapter
TheMediaGrid a7c3733
Some change to restart autotests
TheMediaGrid 0763615
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 81c6700
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 77ce199
Fix userIds format for TheMediaGrid Bid Adapter
TheMediaGrid 4b944e8
Remove digitrust userId from TheMediaGrid Bid Adapter
TheMediaGrid 192cb9a
Merge remote-tracking branch 'upstream/master'
TheMediaGrid e7994ca
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 01e4c8e
Protocols was added in video section in ad request for TheMediaGrid B…
TheMediaGrid a2c90fb
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 97e1c5e
TheMediaGrid: fix trouble with alias using
TheMediaGrid ae34924
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 21cad2b
TheMediaGridNM: fix trouble with alias
TheMediaGrid 0cf3d1d
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 94fccff
Merge remote-tracking branch 'upstream/master'
TheMediaGrid ecfa441
Merge remote-tracking branch 'upstream/master'
TheMediaGrid ebf5684
Merge remote-tracking branch 'upstream/master'
TheMediaGrid da4e7a3
TheMediaGrid Bid Adapter: added support of PBAdSlot module
TheMediaGrid 419fd89
TheMediaGrid Bid Adapter: fix typo
TheMediaGrid 7845ee4
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 8036bfa
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 3e9b878
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 2645aff
Merge remote-tracking branch 'upstream/master'
TheMediaGrid d76839f
GridNM Bid Adapter: use absent in params data from mediaTypes
TheMediaGrid 126b9af
GridNM Bid Adapter: fix md file + add advertiserDomains support
TheMediaGrid 5ae8585
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 3504295
TheMediaGrid and gridNM Bid Adapter: minor netRevenue fixes
TheMediaGrid 271b24c
gridNM Bid Adapter updates after review
TheMediaGrid 635b87c
Merge remote-tracking branch 'upstream/master'
TheMediaGrid e299874
TheMediaGrid Bid Adapter: fix keywords workflow
TheMediaGrid 6503708
Merge remote-tracking branch 'upstream/master'
TheMediaGrid dc7263e
fix testing and kick off lgtm again
ChrisHuie f5b0acc
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 4452dff
TheMediaGrig: added keywords formating in request
TheMediaGrid 60be56b
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 2a66d3d
TheMediaGrid: added ext.bidder.grid.demandSource processing
TheMediaGrid 7582d84
Merge remote-tracking branch 'upstream/master'
TheMediaGrid aba9510
TheMediaGrid: added user.id from fpd cookie
TheMediaGrid afa6dd6
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 8a0ef0c
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 10bd427
TheMediaGrid: control cookie setting via bidder config
TheMediaGrid 199324d
TheMediaGrid: use localStorage instead cookie
TheMediaGrid 0ed526d
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 578f571
Merge remote-tracking branch 'upstream/master'
TheMediaGrid b1147c8
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 54f0dc0
TheMediaGridNM Bid Adapter: update adapter to use /hbjson endpoint
TheMediaGrid 6aa6ccb
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 88f2a71
TheMediaGridNM: fix unnecessary conditions
TheMediaGrid 4ecc86a
Merge remote-tracking branch 'upstream/master' into HEAD
TheMediaGrid 5e1b873
TheMediaGrid: fix bug with nurl field in response
TheMediaGrid 9d99504
TheMediaGrid: update test
TheMediaGrid 413aebe
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 930abad
TheMediaGridNM: fix possible bug with nurl
TheMediaGrid fb23fd9
Merge remote-tracking branch 'upstream/master'
TheMediaGrid fad42bb
TheMediaGrid: added alias as playwire
TheMediaGrid 9f53ce7
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 56bc1a0
TheMediaGrid: added alias as adlivetech
TheMediaGrid 0346f33
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 435be75
TheMediaGrid: fix sync url workflow
TheMediaGrid 1c9b3bf
TrustX: fix sync url worflow + remove old syncurl
TheMediaGrid 2c91a30
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 51f7cd5
TheMediaGrid: added instl support
TheMediaGrid 627093c
TheMediaGrid: fix test for instl
TheMediaGrid 4eef533
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 2f5f564
TheMediaGrid: update md file
TheMediaGrid c249b3d
Merge remote-tracking branch 'upstream/master'
TheMediaGrid 65c4908
TheMediaGrid: reformat segments for permutive rtd module
TheMediaGrid 75dc0f6
TrustX: send all ortb2.user.data in user.data
TheMediaGrid ebe6822
TheMediaGrid: remove permutive segments reformating
TheMediaGrid 70814e5
TrustX: remove permutive segments reformating
TheMediaGrid acef480
TheMediaGrid & TrustX: fix typo
TheMediaGrid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -401,30 +401,39 @@ describe('TrustXAdapter', function () { | |
expect(payload.site.content).to.deep.equal(jsContent); | ||
}); | ||
|
||
it('if segment is present in permutive targeting, payload must have right params', function () { | ||
const permSegments = [{id: 'test_perm_1'}, {id: 'test_perm_2'}]; | ||
const bidRequestsWithPermutiveTargeting = bidRequests.map((bid) => { | ||
return Object.assign({ | ||
rtd: { | ||
p_standard: { | ||
targeting: { | ||
segments: permSegments | ||
} | ||
} | ||
} | ||
}, bid); | ||
}); | ||
const request = spec.buildRequests(bidRequestsWithPermutiveTargeting, bidderRequest); | ||
expect(request.data).to.be.an('string'); | ||
it('shold have user.data filled from config ortb2.user.data', function () { | ||
const userData = [ | ||
{ | ||
name: 'someName', | ||
segment: [1, 2, { anyKey: 'anyVal' }, 'segVal', { id: 'segId' }, { value: 'segValue' }, { id: 'segId2', name: 'segName' }] | ||
}, | ||
{ | ||
name: 'permutive.com', | ||
segment: [1, 2, 'segVal', { id: 'segId' }, { anyKey: 'anyVal' }, { value: 'segValue' }, { id: 'segId2', name: 'segName' }] | ||
}, | ||
{ | ||
someKey: 'another data' | ||
} | ||
]; | ||
|
||
const getConfigStub = sinon.stub(config, 'getConfig').callsFake( | ||
arg => arg === 'ortb2.user.data' ? userData : null); | ||
const request = spec.buildRequests([bidRequests[0]], bidderRequest); | ||
const payload = parseRequest(request.data); | ||
expect(payload).to.have.property('user'); | ||
expect(payload.user.data).to.deep.equal([{ | ||
name: 'permutive', | ||
segment: [ | ||
{name: 'p_standard', value: permSegments[0].id}, | ||
{name: 'p_standard', value: permSegments[1].id} | ||
] | ||
}]); | ||
expect(payload.user.data).to.deep.equal([ | ||
{ | ||
name: 'someName', | ||
segment: [1, 2, { anyKey: 'anyVal' }, 'segVal', { id: 'segId' }, { value: 'segValue' }, { id: 'segId2', name: 'segName' }] | ||
}, | ||
{ | ||
name: 'permutive.com', | ||
segment: [{ value: '1' }, { value: '2' }, { value: 'segVal' }, { value: 'segId' }, { value: 'segValue' }, { value: 'segId2', name: 'segName' }] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do these all say value instead of id |
||
}, | ||
{ | ||
someKey: 'another data' | ||
} | ||
]); | ||
getConfigStub.restore(); | ||
}); | ||
|
||
it('should contain the keyword values if it present in ortb2.(site/user)', function () { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Should"