Skip to content

Native template fixes perbid - #30

Merged
william-harris merged 7 commits into
Yieldlab_Bid_Adapter_Switch_To_Post_Open_RTB_Converterfrom
native-template-fixes-perbid
Oct 20, 2026
Merged

william-harris merged 7 commits into
Yieldlab_Bid_Adapter_Switch_To_Post_Open_RTB_Converterfrom
native-template-fixes-perbid

Conversation

@william-harris

Copy link
Copy Markdown

No description provided.

@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

This PR introduces changes that may not work on all browsers. According to Babel, the following polyfills may be needed, and they are not automatically included:

  • Changes to modules/yieldlabBidAdapter.js may need:
    • es.iterator.filter
    • esnext.iterator.filter
  • Changes to test/spec/modules/yieldlabBidAdapter_spec.js may need:
    • es.array.push
    • es.iterator.map
    • esnext.iterator.map

The best way to address this is to provide good test coverage, as normal PR checks run unit tests on older browsers.

@nkloeber nkloeber left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, I think the migration is good. Before upstreaming, I would address the correctness/compatibility issues from the review, especially the single-media-type requirement, floor handling, customParams, native reconciliation and request-id handling.

For the final public-PR cleanup, could we also:

  • update modules/yieldlabBidAdapter.md for the new /ortb flow and its compatibility constraints, and link any docs.prebid.org PR in the description
  • add and export types for the public bidder params (adslotId, supplyId, targeting, extId, customParams)
  • squash 9cb47c1a5 with 54c9c0708 -> the former deliberately leaves one test red and the latter fixes it, so the public history shouldn't contain a failing commit
  • rebase onto current upstream/master and rerun the adapter tests

I'd also keep the usual Yieldlab Bid Adapter: prefix -> the last two commits currently use Yieldlab:.

Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
@william-harris
william-harris force-pushed the native-template-fixes-perbid branch from 54c9c07 to addab70 Compare October 12, 2026 13:06
William Harris and others added 6 commits October 12, 2026 15:09
NOTE: one test is deliberately RED and fails on this commit -

  "a publisher using the standard mediaTypes.native shorthand gets a usable
   native bid"

It expresses the desired behaviour rather than the current one. The following
commit adds the facet-type mapping fix and re-scopes it. Suite here is
50 passed / 1 failed; that failure is the bug, not a broken test.
Fixes the native regression documented by the tests in the previous commit.
Send each ad unit's media types for the adslot to decide, mark requests with
ext.vm.client, drop helpers the converter already covers, and document floors
and the bidder params.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Keep honouring params.iabContent over first-party content, prefer an explicit
livestream over the live alias regardless of key order, and ignore an
iabContent that is not a plain object.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The floors module's ORTB processors write imp.bidfloor and a floor per
media type, and the endpoint applies the one for the adslot's media type
and ignores currencies it can't convert, so the adapter's own lookup goes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Join a keywords array into the comma-separated string the endpoint
requires, as /yp did, and give the iabContent docs and types the OpenRTB
2.6 shapes the endpoint validates against.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@william-harris
william-harris force-pushed the native-template-fixes-perbid branch from addab70 to 017b459 Compare October 12, 2026 13:12
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
Comment thread modules/yieldlabBidAdapter.js Resolved
- Type bid request params as YieldlabBidderParams in JSDoc
- Describe ext.vm.client only as identifying traffic origin
- Drop confusing request id and ext.origin test assertions
- Rename the DSA test and drop its adomain comments

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@rey1128
rey1128 self-requested a review October 19, 2026 12:24
@william-harris
william-harris merged commit 59c04ec into Yieldlab_Bid_Adapter_Switch_To_Post_Open_RTB_Converter Oct 20, 2026
106 of 109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants