-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Set bid meta adaptercode to adapter name (#3661)
- Loading branch information
Showing
68 changed files
with
261 additions
and
193 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
62 changes: 62 additions & 0 deletions
62
endpoints/openrtb2/sample-requests/aliased/hard-alias.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,62 @@ | ||
{ | ||
"description": "Imp extension references valid bidder alias of adf defined in the adform bidder infos config yaml file.", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "adform", | ||
"currency": "USD", | ||
"price": 2 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "test.somepage.com" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "my-imp-id", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
] | ||
}, | ||
"ext": { | ||
"adform": { | ||
"mid": "123" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"expectedBidResponse": { | ||
"id":"some-request-id", | ||
"bidid":"test bid id", | ||
"cur": "USD", | ||
"nbr":0, | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "adform-bid", | ||
"impid": "my-imp-id", | ||
"price": 2, | ||
"ext": { | ||
"origbidcpm": 2, | ||
"origbidcur": "USD", | ||
"prebid": { | ||
"meta": { | ||
"adaptercode": "adform" | ||
}, | ||
"type": "banner" | ||
} | ||
} | ||
} | ||
], | ||
"seat": "adform" | ||
} | ||
] | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
61 changes: 61 additions & 0 deletions
61
endpoints/openrtb2/sample-requests/aliased/request-alias.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,61 @@ | ||
{ | ||
"description": "Imp extension references valid bidder alias of appnexus defined in the request ext.prebid.aliases field.", | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "test.somepage.com" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "my-imp-id", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
] | ||
}, | ||
"ext": { | ||
"alias1": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
], | ||
"ext": { | ||
"prebid": { | ||
"aliases": { | ||
"alias1": "appnexus" | ||
} | ||
} | ||
} | ||
}, | ||
"expectedBidResponse": { | ||
"id":"some-request-id", | ||
"bidid":"test bid id", | ||
"cur": "USD", | ||
"nbr":0, | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "appnexus-bid", | ||
"impid": "my-imp-id", | ||
"price": 0, | ||
"ext": { | ||
"origbidcpm": 0, | ||
"origbidcur": "USD", | ||
"prebid": { | ||
"meta": { | ||
"adaptercode": "appnexus" | ||
}, | ||
"type": "banner" | ||
} | ||
} | ||
} | ||
], | ||
"seat": "alias1" | ||
} | ||
] | ||
}, | ||
"expectedReturnCode": 200 | ||
} | ||
|
67 changes: 67 additions & 0 deletions
67
endpoints/openrtb2/sample-requests/alternate-bidder-code/alternate-bidder-code.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,67 @@ | ||
{ | ||
"description": "Imp extension doesn't come with valid bidder name but does come with valid bidder alias as defined in the mockAliases list.", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 2, | ||
"seat": "groupm" | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "some-request-id", | ||
"site": { | ||
"page": "test.somepage.com", | ||
"publisher": { | ||
"id": "alternate_bidder_code_acct" | ||
} | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "my-imp-id", | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
] | ||
}, | ||
"ext": { | ||
"appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"expectedBidResponse": { | ||
"id":"some-request-id", | ||
"bidid":"test bid id", | ||
"cur": "USD", | ||
"nbr":0, | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "appnexus-bid", | ||
"impid": "my-imp-id", | ||
"price": 2, | ||
"ext": { | ||
"origbidcpm": 2, | ||
"origbidcur": "USD", | ||
"prebid": { | ||
"meta": { | ||
"adaptercode": "appnexus" | ||
}, | ||
"type": "banner" | ||
} | ||
} | ||
} | ||
], | ||
"seat": "groupm" | ||
} | ||
] | ||
}, | ||
"expectedReturnCode": 200 | ||
} | ||
|
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
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
Oops, something went wrong.