-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an app.id blacklist to PBS and reject requests from it (#969)
- Loading branch information
1 parent
d0d0cd8
commit 59271c9
Showing
28 changed files
with
256 additions
and
44 deletions.
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
84 changes: 84 additions & 0 deletions
84
endpoints/openrtb2/sample-requests/blacklisted/blacklisted-app.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,84 @@ | ||
{ | ||
"description": "This is a perfectly valid request except that it comes from a blacklisted App", | ||
"message": "Invalid request: Prebid-server does not process requests from App ID: spam_app\n", | ||
|
||
"requestPayload": { | ||
"id": "some-request-id", | ||
"user": { | ||
"ext": { | ||
"consent": "gdpr-consent-string", | ||
"prebid": { | ||
"buyeruids": { | ||
"appnexus": "override-appnexus-id-in-cookie" | ||
} | ||
} | ||
} | ||
}, | ||
"app": { | ||
"id": "spam_app" | ||
}, | ||
"regs": { | ||
"ext": { | ||
"gdpr": 1 | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "some-impression-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placementId": 10433394 | ||
}, | ||
"districtm": { | ||
"placementId": 105 | ||
}, | ||
"rubicon": { | ||
"accountId": 1001, | ||
"siteId": 113932, | ||
"zoneId": 535510 | ||
} | ||
} | ||
} | ||
], | ||
"tmax": 500, | ||
"ext": { | ||
"prebid": { | ||
"aliases": { | ||
"districtm": "appnexus" | ||
}, | ||
"bidadjustmentfactors": { | ||
"appnexus": 1.01, | ||
"districtm": 0.98, | ||
"rubicon": 0.99 | ||
}, | ||
"cache": { | ||
"bids": {} | ||
}, | ||
"targeting": { | ||
"includewinners": false, | ||
"pricegranularity": { | ||
"precision": 2, | ||
"ranges": [ | ||
{ | ||
"max": 20, | ||
"increment": 0.10 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"mimes": [] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"hmax":50 | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"hmin":50 | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
"id": "imp-id", | ||
"banner": null | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"wmax": 50 | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"wmin":50 | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,6 +19,9 @@ | |
] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
"format": [{}] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,9 @@ | |
] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,6 +13,9 @@ | |
] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,9 @@ | |
] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
"id": "req-id", | ||
"imp": [ | ||
{ } | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -12,6 +12,9 @@ | |
}, | ||
"ext": {} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,9 @@ | |
"appnexus": "invalidParams" | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -16,6 +16,9 @@ | |
} | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
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,6 +11,9 @@ | |
] | ||
} | ||
} | ||
] | ||
], | ||
"app": { | ||
"id": "app_001" | ||
} | ||
} | ||
} |
Oops, something went wrong.