Prebid Server Aliases not mapped/translated to their corresponding Bidder name on Cookie Sync requests
Type of issue
Bug
Description
PBJS is not mapping/translating PBS Aliases to their 'parent' bidder on Cookie Sync requests. Instead, it's sending the alias present in the configuration which leads to a "error": "Unsupported bidder" in the response.
Steps to reproduce
PBJS Configuration:
..
adUnits: [
{
code: 'path',
mediaTypes: {
banner: {
sizes: [[300, 600]],
},
},
bids: [
{
bidder: 'rubiconS2S',
params: {
accountId: 'a',
siteId: 'b',
zoneId: 'c',
},
},
],
},
]
..
s2sConfig: [
..
bidders: [
'rubiconS2S',
],
extPrebid: {
aliases: {
'rubiconS2S': 'rubicon',
},
}
],
..
Expected results
Expected to see rubicon in the request payload sent to the /cookie_sync endpoint.
Actual results
Seeing rubiconS2S instead:
Leading to the following response - Prebid Server Java, unsure if Go's version returns the same:
{
"status": "ok",
"bidder_status": [
{
"bidder": "rubiconS2S",
"error": "Unsupported bidder"
}
]
}
Platform details
Pbjs version 6.9.0
Discussed with @dgirardi - we agreed that for now only pub-defined aliases will be resolved for /cookie_sync. Hardcoded aliases are supported on the PBS side.
Discussed with @dgirardi - we agreed that for now only pub-defined aliases will be resolved for /cookie_sync. Hardcoded aliases are supported on the PBS side.
Registering aliases on PBJS solves the "issue". Is there any value on keeping this open?
@danielguedesb - what do you mean by 'Registering aliases'? Glad to hear you're happy with the situation now, but I'm curious. I didn't think that pbjs.aliasBidder would have an effect on PBS cookie_sync...
nm - just looked in the code. yeah, bidder aliases are already traversed. cool. closing.
For reference, this is what I was referring to: https://docs.prebid.org/dev-docs/publisher-api-reference/aliasBidder.html
pbjs.aliasBidder('rubicon', 'rubiconS2S');
The above registers the alias and is then picked up correctly by prebidServerBidAdapter.
The following does not work as intended though:
s2sConfig.extPrebid.aliases(as in OP)- aliases to aliases (
pbjs.aliasBidder('rubicon', 'rubicon2'); pbjs.aliasBidder('rubicon2', 'rubicon3')) - "hardcoded" aliases (
beintoowill be resolved toappnexus, even though it might have different sync logic in the backend).