-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23bc394
commit 72b160b
Showing
8 changed files
with
206 additions
and
11 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
81 changes: 81 additions & 0 deletions
81
...penrtb2/sample-requests/invalid-whole/bid-adj-factors-case-invalid-same-bidder-names.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,81 @@ | ||
{ | ||
"description": "This demonstrates a request with bidadjustmentfactors that have multiple of the same bidder is invalid request", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 1.00 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "prebid.org" | ||
}, | ||
"user": { | ||
"ext": { | ||
"consent": "gdpr-consent-string" | ||
} | ||
}, | ||
"regs": { | ||
"ext": { | ||
"gdpr": 1, | ||
"us_privacy": "1NYN" | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "some-impression-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"Appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
], | ||
"tmax": 500, | ||
"ext": { | ||
"prebid": { | ||
"bidadjustmentfactors": { | ||
"APPNEXUS": 1.01, | ||
"Appnexus": 2.00 | ||
}, | ||
"cache": { | ||
"bids": {} | ||
}, | ||
"channel": { | ||
"name": "video", | ||
"version": "1.0" | ||
}, | ||
"targeting": { | ||
"includewinners": false, | ||
"pricegranularity": { | ||
"precision": 2, | ||
"ranges": [ | ||
{ | ||
"max": 20, | ||
"increment": 0.10 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"expectedReturnCode": 400, | ||
"expectedErrorMessage": "Invalid request: cannot have multiple bidders that differ only in case style" | ||
} |
97 changes: 97 additions & 0 deletions
97
...ple-requests/valid-whole/exemplary/bid-adj-factors-case-insensitive-different-casing.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,97 @@ | ||
{ | ||
"description": "This demonstrates bid adjustment factors with bidder names that have different casing in imp vs. in bidadjustmentfactors", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 1.00 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "prebid.org" | ||
}, | ||
"user": { | ||
"ext": { | ||
"consent": "gdpr-consent-string" | ||
} | ||
}, | ||
"regs": { | ||
"ext": { | ||
"gdpr": 1, | ||
"us_privacy": "1NYN" | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "some-impression-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"Appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
], | ||
"tmax": 500, | ||
"ext": { | ||
"prebid": { | ||
"bidadjustmentfactors": { | ||
"APPNEXUS": 1.01 | ||
}, | ||
"cache": { | ||
"bids": {} | ||
}, | ||
"channel": { | ||
"name": "video", | ||
"version": "1.0" | ||
}, | ||
"targeting": { | ||
"includewinners": false, | ||
"pricegranularity": { | ||
"precision": 2, | ||
"ranges": [ | ||
{ | ||
"max": 20, | ||
"increment": 0.10 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"expectedBidResponse": { | ||
"id": "some-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "appnexus-bid", | ||
"impid": "some-impression-id", | ||
"price": 1.01 | ||
} | ||
], | ||
"seat": "Appnexus" | ||
} | ||
], | ||
"bidid": "test bid id", | ||
"cur": "USD", | ||
"nbr": 0 | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
File renamed without changes.
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