Repository navigation
fix(rendering): honor VideoParameters on the rendering path [3.3.2-sw2] - #2
Merged
Merged
Conversation
Follow-up to sw1 (BannerView multiformat), per Prebid Mobile Android team review: setVideoParameters() on a rendering BannerView was inert beyond video.w/h. setVideoImpValues() reads the full VideoParameters (mimes, protocols, playbackmethod, api, plcmt, placement, durations, bitrates, skippable, battr) only inside `if (adConfiguration.isOriginalAdUnit())` — a flag no rendering-API class sets. So a multiformat BannerView's outstream imp shipped with hardcoded defaults and placement=INTERSTITIAL (wrong for in-feed outstream). Relax the gate to also read VideoParameters when they're explicitly set: if (adConfiguration.isOriginalAdUnit() || adConfiguration.getVideoParameters() != null) Guarded — rendering units that never call setVideoParameters keep the default branch. Also fixes placement without a separate setPlacementType: our params carry placement=InBanner / plcmt=Standalone. isOriginalAdUnit is intentionally NOT flipped (it drives far more than video imp building). Bumps prebidSdkVersionName 3.3.2-sw1 → 3.3.2-sw2; documents in FORK-MAINTENANCE.md.
nsp37
added a commit
to Antengo/sellwild-sdk
that referenced
this pull request
Sep 2, 2026
…meters) sw2 makes the fork's BasicParameterBuilder actually apply VideoParameters on the rendering path (Antengo/prebid-mobile-android#2), so prebidOnly outstream carries mimes/protocols/playbackmethod/api/placement/plcmt/durations — not just w/h. Depends on that fork PR merged + published at 3.3.2-sw2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1 (BannerView multiformat), addressing the Prebid Mobile Android team's review feedback:
setVideoParameters()on a renderingBannerViewis inert beyondvideo.w/h.Root cause
BasicParameterBuilder.setVideoImpValues()reads the fullVideoParameters(mimes, protocols, playbackmethod, api, plcmt, placement, durations, bitrates, skippable, battr) only insideif (adConfiguration.isOriginalAdUnit())— set true only by the original AdUnit API; no rendering-API class (BannerView included) sets it. So a multiformatBannerView's outstream imp shipped with hardcoded defaults andplacement = INTERSTITIAL(wrong for in-feed outstream).Change
Relax the gate to read params when explicitly set:
setVideoParameterskeep the original default branch — no change for existing rendering interstitials.placement=InBanner/plcmt=Standalone, so no separatesetPlacementTypeis needed (that setter collapses formats to VAST-only anyway).isOriginalAdUnitintentionally NOT flipped — it drives far more than video imp building.Bumps
prebidSdkVersionName→3.3.2-sw2; documented inFORK-MAINTENANCE.md.Fork mirror; the same fix should go on upstream prebid#1000 in reply to the maintainer feedback.
🤖 Generated with Claude Code