-
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
Support Prebid Server stored impression scenario #7027
Comments
There is a simple workaround that feels wrong, but works 😂 If you add an "empty" bid with the corresponding bidder code, it works const adUnit = {
mediaType: { banner: { sizes: [[300, 250]] } },
ortb2Imp: { ext: { prebid: { storedrequest: { id: 'ad-slot-1' } } } },
bids: [
{ bidder: 'Bidder A', params { } },
// the client adapter is not required to make this work!
{ bidder: 'Bidder B', params { } },
]
} |
Thanks for writing this up in detail @muuki88. We just need to decide if getting an "unknown" bidder back from PBS is always fine. I guess we have no choice. I'd suggest adding an informational log entry -- e.g. "received bid from server-only bidder: BidderA" Any objections? Any volunteers? (@mmoschovas ? @idettman ?) FWIW, this is somewhat related to #6361 |
I was thinking about the |
Issue review came to exact same conclusion -- just need a volunteer to add the feature. |
If you use the workaround mentioned in #7027 (comment) you also need to make sure that
|
related to #7688 |
The plan is to solve with with #7688.
|
Sounds good to me Should we close this issue then as a duplicate? |
Good progress has been made on #7688, but we've found that the scenario in this issue needs a little more work. What we'd like to support is
PBJS-core would need to be be updated to deal cleanly with the scenario that an adunit doesn't contain bids. It's possible that one adunit in an auction contains bids while another doesn't. I'd suggest:
The pbsBidAdapter would need to be updated to deal with it: if no bids array is found in the adunit, create the openrtb without imp[].ext.prebid.bidders |
Discussed with @dgirardi - we agreed that the signal for the pbsBidAdapter to emit a stored-imp-only imp object should be implicit: if an AdUnit contains no bids array and does contain ortb2Imp, it will add the imp object. We considered having an explicit signal (e.g. s2sConfig.bidders: ["*"]) but realized that could get confusing in a scenario where some adunits are server-only and some are a mix of client and server. |
Also related to the Prebid.less proposal |
Type of issue
Bug / Feature Request
Description
A bidder is not available in the
bidIdMap
if there's nobid
configure on the client.Prebid.js/modules/prebidServerBidAdapter/index.js
Lines 865 to 872 in d649149
The
bidRequest
is undefined and throws a error later on when trying to access thebidId
Prebid.js/modules/prebidServerBidAdapter/index.js
Line 1004 in d649149
Steps to reproduce
adUnit
with Bidder A for server side and a stored impression idcannot access bidId of undefined
Sample config on client side
And on server side
Test page
None
Expected results
Actual results
Exception
Platform details
Other information
The text was updated successfully, but these errors were encountered: