forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blacklist requests by account (prebid#1014)
* initial pass at blacklisted accounts * Adds support for amp and video
- Loading branch information
1 parent
f57f286
commit 9390073
Showing
7 changed files
with
170 additions
and
4 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
88 changes: 88 additions & 0 deletions
88
endpoints/openrtb2/sample-requests/blacklisted/blacklisted-acct.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,88 @@ | ||
{ | ||
"description": "This is a perfectly valid request except that it comes from a blacklisted Account", | ||
"message": "Invalid request: Prebid-server has blacklisted Account ID: bad_acct, pleaase reach out to the prebid server host.\n", | ||
|
||
"requestPayload": { | ||
"id": "some-request-id", | ||
"user": { | ||
"ext": { | ||
"consent": "gdpr-consent-string", | ||
"prebid": { | ||
"buyeruids": { | ||
"appnexus": "override-appnexus-id-in-cookie" | ||
} | ||
} | ||
} | ||
}, | ||
"app": { | ||
"id": "cool_app", | ||
"publisher": { | ||
"id": "bad_acct" | ||
} | ||
}, | ||
"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
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