-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapter Name Case Insensitive: user.ext.prebid.buyeruids (#3152)
- Loading branch information
1 parent
1384564
commit b3e5d1d
Showing
7 changed files
with
396 additions
and
3 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
84 changes: 84 additions & 0 deletions
84
.../openrtb2/sample-requests/amp/valid-supplementary/aliased-buyeruids-case-insensitive.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": "Amp request where root.user.ext.prebid.buyeruids field makes use of alias defined in root.ext.prebid.aliases and request makes use of case sensitive bidder name", | ||
"query": "tag_id=101", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 2 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "request-with-user-ext-obj", | ||
"site": { | ||
"page": "test.somepage.com" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "my-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"bidder": { | ||
"Appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"ext": { | ||
"prebid": { | ||
"buyeruids": { | ||
"unknown": "123" | ||
} | ||
} | ||
} | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"aliases": { | ||
"unknown": "Appnexus" | ||
} | ||
} | ||
} | ||
}, | ||
"expectedAmpResponse": { | ||
"targeting": { | ||
"hb_bidder": "Appnexus", | ||
"hb_bidder_Appnexus": "Appnexus", | ||
"hb_cache_host": "www.pbcserver.com", | ||
"hb_cache_host_Appnex": "www.pbcserver.com", | ||
"hb_cache_id": "0", | ||
"hb_cache_id_Appnexus": "0", | ||
"hb_cache_path": "/pbcache/endpoint", | ||
"hb_cache_path_Appnex": "/pbcache/endpoint", | ||
"hb_pb": "2.00", | ||
"hb_pb_Appnexus": "2.00" | ||
}, | ||
"ortb2": { | ||
"ext": { | ||
"warnings": { | ||
"general": [ | ||
{ | ||
"code": 10002, | ||
"message": "debug turned off for account" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
77 changes: 77 additions & 0 deletions
77
endpoints/openrtb2/sample-requests/amp/valid-supplementary/buyeruids-camel-case.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,77 @@ | ||
{ | ||
"description": "Amp request where root.user.ext.prebid.buyeruids field has camel case bidder name", | ||
"query": "tag_id=101", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "yahooAds", | ||
"currency": "USD", | ||
"price": 2 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "request-with-user-ext-obj", | ||
"site": { | ||
"page": "test.somepage.com" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "my-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"bidder": { | ||
"YahooAds": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"ext": { | ||
"prebid": { | ||
"buyeruids": { | ||
"YahooAds": "123" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"expectedAmpResponse": { | ||
"targeting": { | ||
"hb_bidder": "YahooAds", | ||
"hb_bidder_YahooAds": "YahooAds", | ||
"hb_cache_host": "www.pbcserver.com", | ||
"hb_cache_host_YahooA": "www.pbcserver.com", | ||
"hb_cache_id": "0", | ||
"hb_cache_id_YahooAds": "0", | ||
"hb_cache_path": "/pbcache/endpoint", | ||
"hb_cache_path_YahooA": "/pbcache/endpoint", | ||
"hb_pb": "2.00", | ||
"hb_pb_YahooAds": "2.00" | ||
}, | ||
"ortb2": { | ||
"ext": { | ||
"warnings": { | ||
"general": [ | ||
{ | ||
"code": 10002, | ||
"message": "debug turned off for account" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
77 changes: 77 additions & 0 deletions
77
endpoints/openrtb2/sample-requests/amp/valid-supplementary/buyeruids-case-insensitive.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,77 @@ | ||
{ | ||
"description": "Amp request where root.user.ext.prebid.buyeruids field has case insensitive bidder name", | ||
"query": "tag_id=101", | ||
"config": { | ||
"mockBidders": [ | ||
{ | ||
"bidderName": "appnexus", | ||
"currency": "USD", | ||
"price": 2 | ||
} | ||
] | ||
}, | ||
"mockBidRequest": { | ||
"id": "request-with-user-ext-obj", | ||
"site": { | ||
"page": "test.somepage.com" | ||
}, | ||
"imp": [ | ||
{ | ||
"id": "my-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"prebid": { | ||
"bidder": { | ||
"Appnexus": { | ||
"placementId": 12883451 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"user": { | ||
"ext": { | ||
"prebid": { | ||
"buyeruids": { | ||
"Appnexus": "123" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"expectedAmpResponse": { | ||
"targeting": { | ||
"hb_bidder": "Appnexus", | ||
"hb_bidder_Appnexus": "Appnexus", | ||
"hb_cache_host": "www.pbcserver.com", | ||
"hb_cache_host_Appnex": "www.pbcserver.com", | ||
"hb_cache_id": "0", | ||
"hb_cache_id_Appnexus": "0", | ||
"hb_cache_path": "/pbcache/endpoint", | ||
"hb_cache_path_Appnex": "/pbcache/endpoint", | ||
"hb_pb": "2.00", | ||
"hb_pb_Appnexus": "2.00" | ||
}, | ||
"ortb2": { | ||
"ext": { | ||
"warnings": { | ||
"general": [ | ||
{ | ||
"code": 10002, | ||
"message": "debug turned off for account" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"expectedReturnCode": 200 | ||
} |
Oops, something went wrong.