-
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 support for OpenRTB Native bids #3145
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still awaiting feedback |
hi @snapwich are there any updates on this one? is there an ETA for the availability of OpenRTB Native via Prebid Server? |
aa26292
to
e413c45
Compare
Can't get a valid native response back from appnexus prebid server but I have unit tests around it. Need to decide how |
Regarding: #3145 (comment) |
Yes, ready for review. It's possible it might need updates but is safe for merge. |
e413c45
to
6c02b22
Compare
…b-native # Conflicts: # modules/rubiconAnalyticsAdapter.js
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.
@snapwich Are there any special test params that should be used to test making a native request to PBS and seeing the response? Or should it work with any PBS-compliant adapter assuming they make a typical native adUnit?
I was trying to setup a test and while the PBS request went out, PBS did not return a bid back. The same native adUnit works when I run it through the correspondning client-side adapter.
@jsnellbaker as far as I am aware prebid server might not even have full support for native bids from pbjs right now. For testing I was able to verify that native impressions were being received in prebid server but I had to mock the responses from prebid server to verify this code. I was never able to get an end-to-end fully working. Do we have an example of native working with prebid-server and a test endpoint? If I recall correctly when coding this the appnexus endpoint would only return nobids through prebid server for native requests. I was hoping to get this merged sooner than later (since it keeps getting merge conflicts) and work out the kinks on prebid-server as needed, but if it's possible to get an end-to-end test working I think that'd be great. |
@snapwich I'm checking internally about the appnexus adapter and some native test params that work through PBS. Will follow-up on this point. |
I received some feedback; the issue that we're seeing is the absence of an Specifically, if its v1.2 and an image asset is being requested, we require
|
@jsnellbaker that makes sense. any feedback on a test endpoint to appnexus or test parameters I could use to verify through prebid-server -> appnexus adapter? |
This is a test page I setup and was trying to use. The placements/params should return a valid appnexus native bid (they do when I run it through the client-side adapter). |
This pull request introduces 2 alerts when merging 61589da into c2bdb94 - view on LGTM.com new alerts:
This project has automated code review enabled, but doesn't use the LGTM GitHub App. Migrate over by installing the app. Read about the benefits of migrating to GitHub Apps in the blog. Comment posted by LGTM.com |
@snapwich I discovered an issue around this line of code: If the native Can you please take a look around this area of the code? |
@jsnellbaker I put in a check that allows native adUnits through prebid-server without sizes. I was just testing how other Native adUnits seemed to be working (by passing size |
* initial support for native requests in prebid server * add support for native request in prebid server OpenRTB * fixes and new test for native openrtb responses * updates to prebidServerBidAdapter for native support * resolve conflicts with prebid-server video changes * successfully returning and rendering native ad through prebid server * add example prebid server native page * fix bugs and tests for prebid-server native * resolve unused variable lint alert in native example * allow native adUnits without sizes in prebid server
There is an issue with this code change and multiple banner size support in native ads in prebid.js version 2.34.0. In the example here http://prebid.org/dev-docs/show-multi-format-ads.html it shows support for multiple distinct sizes in the From the example page above:
Becomes this example call into a prebid server with multiple sizes from prebis.js using a custom prebid server (latest version as of this comment's date):
If you look at the Also using a single size such as
From a quick debug it appears the issues happening at https://github.com/prebid/Prebid.js/blame/a7ad5ef0c7284147c0027cbf4317997542a232d7/modules/prebidServerBidAdapter/index.js#L512 where the code pulls the 0 and 1 indexes assuming the value being passed is |
I believe this is an error in documentation. If you look at 4.4 of the OpenRTB Native Spec there is no ability for an image asset object to have more than one size, only w, h or a wmin, hmin. |
For multiple distinct sizes I assume we need to pass the |
* initial support for native requests in prebid server * add support for native request in prebid server OpenRTB * fixes and new test for native openrtb responses * updates to prebidServerBidAdapter for native support * resolve conflicts with prebid-server video changes * successfully returning and rendering native ad through prebid server * add example prebid server native page * fix bugs and tests for prebid-server native * resolve unused variable lint alert in native example * allow native adUnits without sizes in prebid server
Type of change
Description of change
This is a pull-request for following the development of native support for the prebid server adapter's OpenRTB endpoint and getting feedback on how to integrate properly with Prebid.js adUnits.
Other information
OpenRTB Spec v2.4: https://www.iab.com/wp-content/uploads/2016/01/OpenRTB-API-Specification-Version-2-4-DRAFT.pdf
OpenRTB Native Spec 1.2: https://www.iab.com/wp-content/uploads/2017/04/OpenRTB-Native-Ads-Specification-Draft_1.2_2017-04.pdf