KEMBAR78
Creatives : fix resizing when not using an ad server by rogerDyl · Pull Request #13652 · prebid/Prebid.js · GitHub
Skip to content

Conversation

@rogerDyl
Copy link
Contributor

Type of change

  • Bugfix

Description of change

Hello,
This PR fixes the resizing of creatives in secureCreatives.js when GPT is present on the page but not used for certain ad units.

For example, if GPT is only used to render the skin format, then isGptPubadsDefined() always returns true. As a result, the previous code would incorrectly assume GPT is used for all ad units and fail to find ad units not using GPT.

@rogerDyl rogerDyl changed the title Allow having multiple ad servers on one page Fix creatives resizing when not using an ad server Jul 23, 2025
@dgirardi
Copy link
Collaborator

Could you add a test? You can use this as reference (I don't have the right permissions to update this PR myself).

@rogerDyl
Copy link
Contributor Author

Hello @dgirardi, I added a few tests

@ChrisHuie ChrisHuie requested a review from dgirardi July 24, 2025 13:37
@ChrisHuie ChrisHuie changed the title Fix creatives resizing when not using an ad server Creatives : fix resizing when not using an ad server Jul 24, 2025
@patmmccann patmmccann merged commit 6368b6b into prebid:master Jul 24, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants