-
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
Pass app and device fields to Prebid server #2044
Conversation
pbsrequest.go code is indeed developed to read the app fields present in the root of PBSRequest json not in the PBSRequest.ad_units child object. So far no app bundle is passed in the prebid server payload to the differents bidders... With this fix, the device and app should be passed in the setConfig rather than AdUnits.
@@ -193,6 +193,8 @@ export function PrebidServer() { | |||
/* Prebid executes this function when the page asks to send out bid requests */ | |||
baseAdapter.callBids = function(s2sBidRequest, bidRequests, addBidResponse, done, ajax) { | |||
const isDebug = !!getConfig('debug'); | |||
const app = !!getConfig('app'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are pubs setting app
and device
in the config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use case here is using Postbids in an inapp environment via DFP. Nothing is explained on prebid about passing the app and device data yet so using the config seem the most relevant and logical way of doing it.
On the server code (go) all is already done to be able to read this fields and use in requests to bidders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that makes sense. If app
and device
are ORTB objects (and I think they are / will be soon) based on the new ORTB endpoint, then yes I think it makes sense to put these into the config as opposed to the S2S setting object. These can be used universally then vs just S2S.
@AntoineJac |
@bretg @mjacobsonny for thoughts as well. |
It's unclear where this scenario should be documented, but honestly the main getting-started page doesn't seem right. I view this PostBid-through-PrebidServerBidAdapter as a one-off that few pubs will need. How about a FAQ entry? Q: How can I use Prebid Server in a mobile app post-bid scenario? Yes. Just schedule a creative in the ad server that:
So I'm proposing this goes here -- http://prebid.org/dev-docs/faq.html . @rmloveland ? |
Do you please have any ETA for this release to be deployed? |
@AntoineJac Separately we should have a dedicated |
@AntoineJac and I are going to revise the interface to better reflect OpenRTB:
Also, we think the 'app' and 'device' args for the PBS /auction endpoint are objects, not strings. Antoine is confirming, and then I'll submit a doc PR |
doc PR submitted prebid/prebid.github.io#588 |
doc PR open. back to you @mkendall07 |
This PR created a bug -- Prebid Server can't handle getting app and device parameters. |
I just ran into this as well. I think it's because |
pbsrequest.go code is indeed developed to read the app fields present in the root of PBSRequest json not in the PBSRequest.ad_units child object. So far no app bundle is passed in the prebid server payload to the differents bidders...
With this fix, the device and app should be passed in the setConfig rather than AdUnits.
Type of change
Description of change
Be sure to test the integration with your adserver using the Hello World sample page.
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
Other information