Skip to content

Commit

Permalink
Rubicon: Adapter simplifications (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiNahornyi committed Jan 31, 2024
1 parent 5348d88 commit 2487a4b
Show file tree
Hide file tree
Showing 13 changed files with 741 additions and 465 deletions.
204 changes: 78 additions & 126 deletions src/main/java/org/prebid/server/bidder/rubicon/RubiconBidder.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ public class RubiconVideoExt {

Integer skipdelay;

RubiconVideoExtRp rp;

String videotype;
}
11 changes: 2 additions & 9 deletions src/main/resources/bidder-config/rubicon.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
adapters:
rubicon:
ortb-version: "2.6"
# Contact global-support@magnite.com to ask about enabling a connection to the Magnite (formerly Rubicon) exchange.
# We have the following regional endpoint domains: exapi-us-east, exapi-us-west, exapi-apac, exapi-eu
# Please deploy this config in each of your datacenters with the appropriate regional subdomain
endpoint: "https://REGION.rubiconproject.com/a/api/exchange"
endpoint-compression: gzip
geoscope:
- global
endpoint: http://exapi-us-east.rubiconproject.com/a/api/exchange.json
aliases:
magnite:
enabled: false
magnite: ~
meta-info:
maintainer-email: header-bidding@rubiconproject.com
app-media-types:
Expand Down
445 changes: 137 additions & 308 deletions src/test/java/org/prebid/server/bidder/rubicon/RubiconBidderTest.java

Large diffs are not rendered by default.

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}"
}
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}"
}
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}"
}
Loading

0 comments on commit 2487a4b

Please sign in to comment.