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

Debugging module: make mock creatives respect requested sizes #12804

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

dgirardi
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

When mocking a banner ad with the debugging module, restore the old creatives from before #12720 (fixes #12796)

While the new image is nicer, it isn't if we try to fit it to a different aspect ratio IMO - open to reconsider.

Copy link

Tread carefully! This PR adds 3 linter errors (possibly disabled through directives):

  • modules/debugging/bidInterceptor.js (+3 errors)

@patmmccann
Copy link
Collaborator

What does this end up looking like? I think the images in the issue would look fine if they were stretched instead of cutoff?

@spormeon
Copy link

seeing the bidder name was/ is very useless in the "old" images, if you have "multiple" bidders, the new images doesnt show this, if it did great, if it "fit to size" even better, agreed the "new" image looks better than just a "yellow box"

@patmmccann
Copy link
Collaborator

@spormeon so you like the new image but not the sizing and cutoffs?

},
[VIDEO]: (bid, bidResponse) => {
if (!bidResponse.hasOwnProperty('vastXml') && !bidResponse.hasOwnProperty('vastUrl')) {
bidResponse.vastXml = '<?xml version="1.0" encoding="UTF-8"?><VAST version="3.0"><Ad><InLine><AdSystem>GDFP</AdSystem><AdTitle>Demo</AdTitle><Description><![CDATA[Demo]]></Description><Creatives><Creative><Linear ><Duration>00:00:11</Duration><VideoClicks><ClickThrough><![CDATA[https://prebid.org/]]></ClickThrough></VideoClicks><MediaFiles><MediaFile delivery="progressive" width="640" height="360" type="video/mp4" scalable="true" maintainAspectRatio="true"><![CDATA[https://s3.amazonaws.com/files.prebid.org/creatives/PrebidLogo.mp4]]></MediaFile></MediaFiles></Linear></Creative></Creatives></InLine></Ad></VAST>';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ChrisHuie this would be nice to have somewhere served with application/xml content type

@dgirardi dgirardi changed the title Debugging module: restore old mock creative, respect requested sizes Debugging module: respect requested sizes Feb 25, 2025
@dgirardi dgirardi changed the title Debugging module: respect requested sizes Debugging module: make mock creatives respect requested sizes Feb 25, 2025
@spormeon
Copy link

@patmmccann ye, i like the new one, its more "branded" i guess, couldn't the same be also achieved with using the "old" yellow, but change to this "new" blue, with "Prebid logo" - "Prebid Mock Creative" and leave the bidder name & size there as before. The bidder and the size is actualy useful to me eye, as can quickly/ easily see whats what etc

@patmmccann patmmccann self-assigned this Feb 27, 2025
@patmmccann patmmccann merged commit e800318 into master Feb 27, 2025
4 of 5 checks passed
@patmmccann patmmccann deleted the fix-mock-banner branch February 27, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

debug/ mock creatives changed/ broken, related to #12720
3 participants