Skip to content

Commit

Permalink
RTBHouse: app support (#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrj-rtbh authored Jan 25, 2024
1 parent 498955b commit 1ac3fbe
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 0 deletions.
98 changes: 98 additions & 0 deletions adapters/rtbhouse/rtbhousetest/exemplary/app_banner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"mockBidRequest": {
"id": "test-request-id",
"app": {
"bundle": "com.prebid"
},
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [{
"id": "test-imp-id",
"banner": {
"format": [{
"w": 300,
"h": 250
}]
},
"ext": {
"bidder": {}
}
}]
},

"httpCalls": [{
"expectedRequest": {
"uri": "http://localhost/prebid_server",
"body": {
"id": "test-request-id",
"cur": ["USD"],
"app": {
"bundle": "com.prebid"
},
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [{
"id": "test-imp-id",
"banner": {
"format": [{
"w": 300,
"h": 250
}]
},
"ext": {
"bidder": {}
}
}]
}
},
"mockResponse": {
"status": 200,
"body": {
"id": "test-request-id",
"seatbid": [{
"seat": "rtbhouse",
"bid": [{
"id": "randomid",
"impid": "test-imp-id",
"price": 0.500000,
"adid": "12345678",
"adm": "some-test-ad",
"cid": "987",
"crid": "12345678",
"h": 250,
"w": 300,
"mtype": 1
}]
}],
"cur": "USD"
}
}
}],

"expectedBidResponses": [{
"currency": "USD",
"bids": [{
"bid": {
"id": "randomid",
"impid": "test-imp-id",
"price": 0.5,
"adm": "some-test-ad",
"adid": "12345678",
"cid": "987",
"crid": "12345678",
"w": 300,
"h": 250,
"mtype": 1
},
"type": "banner"
}]
}]
}
112 changes: 112 additions & 0 deletions adapters/rtbhouse/rtbhousetest/exemplary/app_native.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"mockBidRequest": {
"imp": [
{
"ext": {
"bidder": {}
},
"id": "test-native-imp",
"native": {
"request": "{\"eventtrackers\":[{\"event\":1,\"methods\":[1,2]}],\"ver\":\"1.2\",\"assets\":[{\"id\":0,\"required\":1,\"title\":{\"len\":140}},{\"id\":1,\"required\":1,\"data\":{\"type\":2}},{\"id\":2,\"required\":1,\"img\":{\"type\":3}}]}",
"ver": "1.2"
}
}
],
"app": {
"bundle": "com.prebid"
},
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"id": "test-native-request",
"ext": {},
"debug": 1
},
"httpCalls": [
{
"expectedRequest": {
"uri": "http://localhost/prebid_server",
"body": {
"id": "test-native-request",
"cur": [
"USD"
],
"imp": [
{
"id": "test-native-imp",
"native": {
"request": "{\"eventtrackers\":[{\"event\":1,\"methods\":[1,2]}],\"ver\":\"1.2\",\"assets\":[{\"id\":0,\"required\":1,\"title\":{\"len\":140}},{\"id\":1,\"required\":1,\"data\":{\"type\":2}},{\"id\":2,\"required\":1,\"img\":{\"type\":3}}]}",
"ver": "1.2"
},
"ext": {
"bidder": {}
}
}
],
"app": {
"bundle": "com.prebid"
},
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"ext": {}
}
},
"mockResponse": {
"status": 200,
"body": {
"id": "test-native-request",
"bidid": "test-bidid",
"cur": "USD",
"seatbid": [
{
"seat": "rtbhouse",
"bid": [
{
"id": "test-native-request",
"impid": "test-native-imp",
"price": 0.5,
"adid": "test-adid",
"adm": "{\"ver\":\"1.2\",\"assets\":[{\"id\":0,\"title\":{\"text\":\"title text\"}},{\"id\":1,\"data\":{\"value\":\"data value\"}},{\"id\":2,\"img\":{\"url\":\"image.url\",\"w\":1200,\"h\":628}}],\"link\":{\"url\":\"link.url\"},\"imptrackers\":[\"imp.tracker.url\"],\"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"event.tracker.url\"}]}",
"adomain": [ "adomain.com" ],
"cid": "test-cid",
"crid": "test-crid",
"dealid": "test-dealid",
"mtype": 4
}
]
}
]
}
}
}
],
"expectedBidResponses": [
{
"currency": "USD",
"bids": [
{
"bid": {
"id": "test-native-request",
"impid": "test-native-imp",
"price": 0.5,
"adid": "test-adid",
"adm": "{\"ver\":\"1.2\",\"assets\":[{\"id\":0,\"title\":{\"text\":\"title text\"}},{\"id\":1,\"data\":{\"value\":\"data value\"}},{\"id\":2,\"img\":{\"url\":\"image.url\",\"w\":1200,\"h\":628}}],\"link\":{\"url\":\"link.url\"},\"imptrackers\":[\"imp.tracker.url\"],\"eventtrackers\":[{\"event\":1,\"method\":1,\"url\":\"event.tracker.url\"}]}",
"adomain": [ "adomain.com" ],
"cid": "test-cid",
"crid": "test-crid",
"dealid": "test-dealid",
"mtype": 4
},
"type": "native"
}
]
}
]
}
4 changes: 4 additions & 0 deletions static/bidder-info/rtbhouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ maintainer:
endpointCompression: gzip
gvlVendorID: 16
capabilities:
app:
mediaTypes:
- banner
- native
site:
mediaTypes:
- banner
Expand Down

0 comments on commit 1ac3fbe

Please sign in to comment.