Skip to content
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

Video Module Doesn't Push Winning Bids to Auction Winning Bids State #10008

Closed
fowler446 opened this issue May 29, 2023 · 6 comments · Fixed by #10014
Closed

Video Module Doesn't Push Winning Bids to Auction Winning Bids State #10008

fowler446 opened this issue May 29, 2023 · 6 comments · Fixed by #10014

Comments

@fowler446
Copy link
Collaborator

Type of issue

Bug

Description

The Prebid video module doesn't add winning bids to the _winningBids state of an auction. This is because the pbjsRenderAd function doesn't run when a video ad unit plays:
https://github.com/prebid/Prebid.js/blob/master/src/prebid.js#L528

Steps to reproduce

Implement the video module on a test page and have some bids win the auction and play. Then type pbjs.getAllWinningBids() and notice how it's empty.

@dgirardi
Copy link
Collaborator

I am wondering if this is limited to the video module, or if it's a problem for video in general. The video module calls markWinningBidAsUsed when it knows a bid has been rendered, which is the same flow used before the video module was introduced.

However, that seems to only mark the bid as "rendered", and not as winning, and I don't know why - it seems to have been like this since the beginning. Paging @mkendall07 for the slim chance of some context.

@dgirardi
Copy link
Collaborator

@ChrisHuie or @karimMourra, are you able to confirm if this is the same issue as in #9686 and/or #9561 ?

@karimMourra
Copy link
Collaborator

karimMourra commented May 30, 2023

I had already fixed this in https://github.com/prebid/Prebid.js/pull/9612/files but it seems like my changes were deleted. the git blame for that line indicates a commit from 2018.
#9612

@karimMourra
Copy link
Collaborator

@dgirardi i do think this fix should work. i am concerned though that other fixes might have been lost when #9612 was undone

@dgirardi
Copy link
Collaborator

I am also confused by your commit. With some digging it looks like it was erased with a heavy handed conflict merge. Do you see anything else in there that may also be broken?

@karimMourra
Copy link
Collaborator

I don't see anything else that looks broken in the conflict merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

3 participants