Skip to content

Commit

Permalink
Made changes regarding GitHub reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
pixfuture-media committed Feb 3, 2025
1 parent a407b22 commit 3457b8c
Show file tree
Hide file tree
Showing 7 changed files with 113 additions and 0 deletions.
43 changes: 43 additions & 0 deletions adapters/pixfuture/pixfuturetest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"id": "request-id-12345",
"imp": [
{
"id": "imp-1",
"banner": {
"format": [
{
"w": 300,
"h": 250
}
]
},
"bidfloor": 0.5,
"ext": {
"bidder": {
"placementId": "123456",
"siteId": "987654"
}
}
}
],
"site": {
"id": "site-id-999",
"domain": "example.com",
"page": "https://example.com"
},
"device": {
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
"ip": "123.123.123.123"
},
"user": {
"id": "user-id-789"
},
"cur": ["USD"],
"ext": {
"prebid": {
"aliases": {
"pixfuture": "pixfuture"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"status": 500,
"errors": [
{
"code": "bid_type_parsing_error",
"message": "Failed to parse impression \"imp-456\" mediatype."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"status": 200,
"bidResponse": {
"seatBid": []
},
"message": "No valid bids available."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"status": 500,
"errors": [
{
"code": "request_marshalling_error",
"message": "Failed to marshal bid request: invalid JSON format."
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"status": 204,
"body": "",
"message": "No content available for the request."
}
31 changes: 31 additions & 0 deletions adapters/pixfuture/pixfuturetest/supplemental/noaccountid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"testBidRequest": {
"id": "test-request-id",
"imp": [
{
"id": "test-imp-id",
"banner": {
"format": [
{
"w": 300,
"h": 250
}
]
},
"ext": {
"bidder": {
"placementId": "123"
}
}
}
],
"site": {
"id": "fake-site-id"
}
},
"expectedMakeRequestsErrors" : [
{
"value": "accountId is not set"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"status": 502,
"errors": [
{
"code": "bad_gateway",
"message": "Pixfuture endpoint returned an unexpected status code: 502."
}
]
}

0 comments on commit 3457b8c

Please sign in to comment.