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

New Video Module, BidsMarkedAsUsed/ rendered #9561

Closed
spormeon opened this issue Feb 19, 2023 · 12 comments
Closed

New Video Module, BidsMarkedAsUsed/ rendered #9561

spormeon opened this issue Feb 19, 2023 · 12 comments
Assignees
Labels

Comments

@spormeon
Copy link

@karimMourra On the new video module, the marked as "rendered" seems to be in the "status" and not the "rendered", should this then set "true" in the rendered so as if we use useBidCache: true, bids can be cached for the TTL?

DevTools_-_127_0_0_1_5500_integrationExamples_videoModule_videojs_playlist_html

@patmmccann
Copy link
Collaborator

Thanks for the report!

@karimMourra
Copy link
Collaborator

@spormeon where are these values read from ? For context, when we determine a bid has been used, we call markWinningBidAsUsed on pbGlobal. Should we be doing something else as well ? Would you happen to have examples of modules that properly mark bids as used for us to work off of ?

@karimMourra
Copy link
Collaborator

@spormeon i took a stab in #9612 - could you please verify that this fixes your issue ?

@spormeon
Copy link
Author

spormeon commented Mar 4, 2023

DevTools_-_127_0_0_1_5500_integrationExamples_videoModule_videojs_bidMarkedAsUsed_html

still seems to be "rendered: false" in V7.39.0. From my understanding this is the mech that is used for "banner", so as prebid stores the bids when useBidCache: true is used. I think i've got this right that if you have a pre-roll with 3 bids of bidA=$2, bidB=2.5, bidC=2.2. bidB is rendered/ used in the first auction, then the bidA & C are stored in cache, so if auction B only gets 1, 1.4 & 1.8 bids. Prebid then uses bidC=2.2 from first auction if still in TTL ( mostly lkely is, as video usually 300 or so). So it only gets "marked off/ wipped out" once status = true. Where the mech is stored i've no real clue, maybe @patmmccann prb knows that off top of his head. I'm not even sure if this is tech possible with video, wasnt before, but hey maybe this new mdoule can change things?

These docs:https://docs.prebid.org/dev-docs/faq.html#does-prebidjs-cache-bids but patrick have a better idea of where to point you to the code etc than me

@patmmccann
Copy link
Collaborator

You can see cached bids stored on pbjs.adUnits

@karimMourra
Copy link
Collaborator

@spormeon #9612 is not in v7.39.0 because it has not yet been merged - please checkout the branch and test locally and let me know if it fixes your issue. Otherwise please provide reproduction steps so I can test myself.

@spormeon
Copy link
Author

spormeon commented Mar 8, 2023

i think i got it going locally, i get this error though:
DevTools_-_localhost_9999_Prebid_js_integrationExamples_videoModule_videojs_bidMarkedAsUsed_html
DevTools_-_localhost_9999_Prebid_js_integrationExamples_videoModule_videojs_bidMarkedAsUsed_html

basically i just added your lines in the files and ran gulp serve-and-test --file prebid.js , then used http://localhost:9999/Prebid.js/integrationExamples/videoModule/videojs/bidMarkedAsUsed.html

@ChrisHuie ChrisHuie moved this from Triage to Tracking in Prebid.js Tactical Issues table Mar 13, 2023
@spormeon
Copy link
Author

#9612 dont solve the problem by looks, actually makes it worse as it drops the: status: "rendered" now, not set the rendered: true/ false

DevTools_-_cdn_adysis_com_VideoDemo_DemoSite_pages_NewVideoModuleNeuwoGolf_html

@spormeon
Copy link
Author

ye #9612 totally breaks it, its "re using" the same auction id, so its thinking that first auction win, is now the winner on all following slots, because stats: "rendered" has gone i think:

prebid v7.41.0 is basically useless to this point, so i'd flag a warning, dont use it, with bidcache true/false, does it.

DevTools_-_cdn_adysis_com_VideoDemo_DemoSite_pages_NewVideoModuleNeuwoGolf_html

@patmmccann
Copy link
Collaborator

@spormeon assuming this is solved with #10014 ?

@patmmccann patmmccann moved this from Tracking to Needs OP in Prebid.js Tactical Issues table Jul 25, 2023
@spormeon
Copy link
Author

@patmmccann Ye that solves that. I think the potenetial problem around if a "freak" high bid wins the first bid and bidcache is on, and never gets "out bid", its has the potential to win every subsequent bid

@dgirardi
Copy link
Collaborator

Closing this with #10014. If you're still having other problems, feel free to open separate issues for them.

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

No branches or pull requests

4 participants