Skip to content

fix(rendering): honor VideoParameters on the rendering path [3.3.2-sw2] - #2

Merged
nsp37 merged 1 commit into
masterfrom
feat/rendering-honor-video-params
Sep 8, 2026
Merged

nsp37 merged 1 commit into
masterfrom
feat/rendering-honor-video-params

Conversation

@nsp37

@nsp37 nsp37 commented Sep 2, 2026

Copy link
Copy Markdown

Follow-up to #1 (BannerView multiformat), addressing the Prebid Mobile Android team's review feedback: setVideoParameters() on a rendering BannerView is inert beyond video.w/h.

Root cause

BasicParameterBuilder.setVideoImpValues() reads the full VideoParameters (mimes, protocols, playbackmethod, api, plcmt, placement, durations, bitrates, skippable, battr) only inside if (adConfiguration.isOriginalAdUnit()) — set true only by the original AdUnit API; no rendering-API class (BannerView included) sets it. So a multiformat BannerView's outstream imp shipped with hardcoded defaults and placement = INTERSTITIAL (wrong for in-feed outstream).

Change

Relax the gate to read params when explicitly set:

if (adConfiguration.isOriginalAdUnit() || adConfiguration.getVideoParameters() != null)
  • Guarded: rendering units that never call setVideoParameters keep the original default branch — no change for existing rendering interstitials.
  • Fixes placement too: our params carry placement=InBanner / plcmt=Standalone, so no separate setPlacementType is needed (that setter collapses formats to VAST-only anyway).
  • isOriginalAdUnit intentionally NOT flipped — it drives far more than video imp building.

Bumps prebidSdkVersionName → 3.3.2-sw2; documented in FORK-MAINTENANCE.md.

Fork mirror; the same fix should go on upstream prebid#1000 in reply to the maintainer feedback.

🤖 Generated with Claude Code

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.
@nsp37
nsp37 merged commit cc39ae0 into master Sep 8, 2026
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.

1 participant