-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prebid server adapter incompatible with sizeMappingV2? #8032
Comments
My view here is that Prebid.js core needs to pre-process AdUnits for the pbsBidAdapter. This covers responsive sizes (both global and advancedSizeMapping) as well as labels. |
@bretg the issue is that prebid core (or actually the sizeMapping module) pre-processes bid requests to have the correct We can partially fix this so that the pre-processing is done on the adUnit (and the example in this particular issue would work), but |
Makes sense. I suppose if the long term goal is Prebid.less, then PBS will eventually need to understand these things. Very well, will add it to the list to define new extensions. It will be some time before they're supported though. |
This is the related PBS issue tracking the enhancement prebid/prebid-server#2168 |
Type of issue
Bug
Description
The Prebid server adapter seems to be incompatible with the advanced size mapping module. Whenever ad units have a mediaTypes.banner.sizeConfig element rather than mediaTypes.banner.sizes, this error is raised when calling bids:
TypeError: Reduce of empty array with no initial value
at Array.reduce ()
at G.e.callBids (prebid-6.2.0.js:27)
at prebid-6.2.0.js:9
at Array.forEach ()
at Object.w.callBids (prebid-6.2.0.js:9)
at Object.run (prebid-6.2.0.js:9)
at d (prebid-6.2.0.js:9)
at Object.$ (prebid-6.2.0.js:9)
at Object. (prebid-6.2.0.js:9)
at Object.callBids (prebid-6.2.0.js:9)
referring to this function in the Prebid server adapter: https://github.com/prebid/Prebid.js/blob/master/modules/prebidServerBidAdapter/index.js#:~:text=out%20bid%20requests%20*/-,baseAdapter.callBids,-%3D%20function(s2sBidRequest%2C%20bidRequests
All validAdUnits seem to be filtered out because of that.
Am I analyzing this correctly?
Steps to reproduce
pbjs.setConfig({
s2sConfig: [{
accountId: '10',
bidders: ['appnexus'],
adapter: 'prebidServer',
enabled: true,
endpoint: 'https://prebid.adnxs.com/pbs/v1/openrtb2/auction',
syncEndpoint: 'https://prebid.adnxs.com/pbs/v1/cookie_sync',
timeout: 500
}]
})
Platform details
Prebid.js 6.2
The text was updated successfully, but these errors were encountered: