-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rubicon: Adapter simplifications (#2784)
- Loading branch information
1 parent
5348d88
commit 2487a4b
Showing
13 changed files
with
741 additions
and
465 deletions.
There are no files selected for viewing
204 changes: 78 additions & 126 deletions
204
src/main/java/org/prebid/server/bidder/rubicon/RubiconBidder.java
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,7 +11,5 @@ public class RubiconVideoExt { | |
|
||
Integer skipdelay; | ||
|
||
RubiconVideoExtRp rp; | ||
|
||
String videotype; | ||
} |
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
445 changes: 137 additions & 308 deletions
445
src/test/java/org/prebid/server/bidder/rubicon/RubiconBidderTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
111 changes: 111 additions & 0 deletions
111
src/test/resources/org/prebid/server/it/deals/test-rubicon-bid-request-1.json
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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"id": "tid", | ||
"imp": [ | ||
{ | ||
"id": "impId1", | ||
"secure": 1, | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
], | ||
"ext": { | ||
"rp": { | ||
"mime": "text/html" | ||
} | ||
} | ||
}, | ||
"pmp": { | ||
"deals": [ | ||
{ | ||
"id": "dealId1", | ||
"ext": { | ||
"line": { | ||
"lineitemid": "lineItem1", | ||
"extlineitemid": "extLineItem1", | ||
"sizes": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "dealId3", | ||
"ext": { | ||
"line": { | ||
"lineitemid": "lineItem3", | ||
"extlineitemid": "extLineItem3", | ||
"sizes": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"rp": { | ||
"zone_id": 4001, | ||
"target": { | ||
"line_item": "extLineItem1" | ||
}, | ||
"track": { | ||
"mint": "", | ||
"mint_version": "" | ||
} | ||
}, | ||
"maxbids": 1 | ||
} | ||
} | ||
], | ||
"source": { | ||
"tid": "${json-unit.any-string}" | ||
}, | ||
"site": { | ||
"domain": "www.example.com", | ||
"page": "http://www.example.com", | ||
"publisher": { | ||
"ext": { | ||
"rp": { | ||
"account_id": 2001 | ||
} | ||
} | ||
}, | ||
"ext": { | ||
"rp": { | ||
"site_id": 3001 | ||
}, | ||
"amp": 0 | ||
} | ||
}, | ||
"device": { | ||
"ua": "userAgent", | ||
"ip": "185.199.110.0", | ||
"ext": { | ||
"rp": {} | ||
} | ||
}, | ||
"user": { | ||
"ext": { | ||
"consent": "CPBCa-mPBCa-mAAAAAENA0CAAEAAAAAAACiQAaQAwAAgAgABoAAAAAA", | ||
"fcapids": [ | ||
"fcapId3" | ||
], | ||
"rp": { | ||
"target": { | ||
"segtaxBLAH" : [ "3333", "6666", "2222", "5555" ] | ||
} | ||
} | ||
} | ||
}, | ||
"at": 1, | ||
"tmax": "${json-unit.any-number}" | ||
} |
96 changes: 96 additions & 0 deletions
96
src/test/resources/org/prebid/server/it/deals/test-rubicon-bid-request-2.json
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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"id": "tid", | ||
"imp": [ | ||
{ | ||
"id": "impId2", | ||
"secure": 1, | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 320, | ||
"h": 320 | ||
} | ||
], | ||
"ext": { | ||
"rp": { | ||
"mime": "text/html" | ||
} | ||
} | ||
}, | ||
"pmp": { | ||
"deals": [ | ||
{ | ||
"id": "dealId2", | ||
"ext": { | ||
"line": { | ||
"lineitemid": "lineItem2", | ||
"extlineitemid": "extLineItem2", | ||
"sizes": [ | ||
{ | ||
"w": 320, | ||
"h": 320 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"rp": { | ||
"zone_id": 4001, | ||
"target": { | ||
"line_item": "extLineItem2" | ||
}, | ||
"track": { | ||
"mint": "", | ||
"mint_version": "" | ||
} | ||
}, | ||
"maxbids": 1 | ||
} | ||
} | ||
], | ||
"source": { | ||
"tid": "${json-unit.any-string}" | ||
}, | ||
"site": { | ||
"domain": "www.example.com", | ||
"page": "http://www.example.com", | ||
"publisher": { | ||
"ext": { | ||
"rp": { | ||
"account_id": 2001 | ||
} | ||
} | ||
}, | ||
"ext": { | ||
"rp": { | ||
"site_id": 3001 | ||
}, | ||
"amp": 0 | ||
} | ||
}, | ||
"device": { | ||
"ua": "userAgent", | ||
"ip": "185.199.110.0", | ||
"ext": { | ||
"rp": {} | ||
} | ||
}, | ||
"user": { | ||
"ext": { | ||
"consent": "CPBCa-mPBCa-mAAAAAENA0CAAEAAAAAAACiQAaQAwAAgAgABoAAAAAA", | ||
"fcapids": [ | ||
"fcapId3" | ||
], | ||
"rp": { | ||
"target": { | ||
"segtaxBLAH" : [ "3333", "6666", "2222", "5555" ] | ||
} | ||
} | ||
} | ||
}, | ||
"at": 1, | ||
"tmax": "${json-unit.any-number}" | ||
} |
111 changes: 111 additions & 0 deletions
111
src/test/resources/org/prebid/server/it/deals/test-rubicon-bid-request-3.json
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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
{ | ||
"id": "tid", | ||
"imp": [ | ||
{ | ||
"id": "impId1", | ||
"secure": 1, | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
], | ||
"ext": { | ||
"rp": { | ||
"mime": "text/html" | ||
} | ||
} | ||
}, | ||
"pmp": { | ||
"deals": [ | ||
{ | ||
"id": "dealId1", | ||
"ext": { | ||
"line": { | ||
"lineitemid": "lineItem1", | ||
"extlineitemid": "extLineItem1", | ||
"sizes": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "dealId3", | ||
"ext": { | ||
"line": { | ||
"lineitemid": "lineItem3", | ||
"extlineitemid": "extLineItem3", | ||
"sizes": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"rp": { | ||
"zone_id": 4001, | ||
"target": { | ||
"line_item": "extLineItem3" | ||
}, | ||
"track": { | ||
"mint": "", | ||
"mint_version": "" | ||
} | ||
}, | ||
"maxbids": 1 | ||
} | ||
} | ||
], | ||
"source": { | ||
"tid": "${json-unit.any-string}" | ||
}, | ||
"site": { | ||
"domain": "www.example.com", | ||
"page": "http://www.example.com", | ||
"publisher": { | ||
"ext": { | ||
"rp": { | ||
"account_id": 2001 | ||
} | ||
} | ||
}, | ||
"ext": { | ||
"rp": { | ||
"site_id": 3001 | ||
}, | ||
"amp": 0 | ||
} | ||
}, | ||
"device": { | ||
"ua": "userAgent", | ||
"ip": "185.199.110.0", | ||
"ext": { | ||
"rp": {} | ||
} | ||
}, | ||
"user": { | ||
"ext": { | ||
"consent": "CPBCa-mPBCa-mAAAAAENA0CAAEAAAAAAACiQAaQAwAAgAgABoAAAAAA", | ||
"fcapids": [ | ||
"fcapId3" | ||
], | ||
"rp": { | ||
"target": { | ||
"segtaxBLAH" : [ "3333", "6666", "2222", "5555" ] | ||
} | ||
} | ||
} | ||
}, | ||
"at": 1, | ||
"tmax": "${json-unit.any-number}" | ||
} |
Oops, something went wrong.