-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Targeting in Response Optional (#3574)
- Loading branch information
1 parent
25a4466
commit 67c487d
Showing
6 changed files
with
254 additions
and
104 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
69 changes: 69 additions & 0 deletions
69
endpoints/openrtb2/sample-requests/valid-whole/exemplary/targeting-optional-all-false.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,69 @@ | ||
{ | ||
"description": "Targeting flags are all set to false, request is still valid, but no targeting data should be present in bids", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 0.00 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "prebid.org" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "some-impression-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
], | ||
"tmax": 500, | ||
"ext": { | ||
"prebid": { | ||
"targeting": { | ||
"includewinners": false, | ||
"includebidderkeys": false, | ||
"includeformat": false | ||
} | ||
} | ||
} | ||
}, | ||
"expectedBidResponse": { | ||
"id": "some-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "appnexus-bid", | ||
"impid": "some-impression-id", | ||
"price": 0 | ||
} | ||
], | ||
"seat": "appnexus" | ||
} | ||
], | ||
"bidid": "test bid id", | ||
"cur": "USD", | ||
"nbr": 0 | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
89 changes: 89 additions & 0 deletions
89
...openrtb2/sample-requests/valid-whole/exemplary/targeting-optional-includeformat-only.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,89 @@ | ||
{ | ||
"description": "Targeting flags are all undefined besides includeformat, request is still valid, defaults should come in for other flags so targeting data should be present in bid", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 1.00 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "prebid.org" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "some-impression-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
], | ||
"tmax": 500, | ||
"ext": { | ||
"prebid": { | ||
"targeting": { | ||
"includeformat": true | ||
} | ||
} | ||
} | ||
}, | ||
"expectedBidResponse": { | ||
"id": "some-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "appnexus-bid", | ||
"impid": "some-impression-id", | ||
"price": 1.00, | ||
"ext": { | ||
"origbidcpm": 1, | ||
"origbidcur": "USD", | ||
"prebid": { | ||
"meta": { | ||
"adaptercode": "appnexus" | ||
}, | ||
"targeting": { | ||
"hb_bidder": "appnexus", | ||
"hb_bidder_appnexus": "appnexus", | ||
"hb_cache_host": "www.pbcserver.com", | ||
"hb_cache_host_appnex": "www.pbcserver.com", | ||
"hb_cache_path": "/pbcache/endpoint", | ||
"hb_cache_path_appnex": "/pbcache/endpoint", | ||
"hb_format": "banner", | ||
"hb_format_appnexus": "banner", | ||
"hb_pb": "1.00", | ||
"hb_pb_appnexus": "1.00" | ||
}, | ||
"type": "banner" | ||
} | ||
} | ||
} | ||
], | ||
"seat": "appnexus" | ||
} | ||
], | ||
"bidid": "test bid id", | ||
"cur": "USD", | ||
"nbr": 0 | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
Oops, something went wrong.