Skip to content

fix: increase max ad size to allow for label [NPPM-2395]#2596

Merged
laurelfulford merged 2 commits intotrunkfrom
fix/increase-max-ad-size
Dec 15, 2025
Merged

fix: increase max ad size to allow for label [NPPM-2395]#2596
laurelfulford merged 2 commits intotrunkfrom
fix/increase-max-ad-size

Conversation

@laurelfulford
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

This PR increases the max-width for the mobile sticky footer ad.

Right now it maxes out at 100px, and allows ads that are up to 100px; however, if you enable the Custom Ad Label, it's also included in the 100px space and pushes the ad down, cutting off a few pixels.

How to test the changes in this Pull Request:

  1. Set up a test ad situation with a 320px x 100px ad creative, and assign it to the Sticky Mobile footer space (note: I had a heck of a time finding creative for this in our test account, so I faked testing it by editing the output, and testing with a taller ad creative - 300x250 - and seeing how much of it was visible. The fix is based off a real example on a publisher site, though).
  2. Under Advertising > Settings, enable Custom Ad Label.
  3. View on the front end and note the ad is touching the bottom of the sticky area - if you inspect the ad, you'll see it's overflowing the max-height.
CleanShot 2025-11-19 at 15 42 54
  1. Apply this PR and run npm run build.
  2. Confirm that the ad is no longer touching the bottom:
CleanShot 2025-11-19 at 15 41 28

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@laurelfulford laurelfulford requested a review from a team as a code owner November 19, 2025 23:46
@laurelfulford laurelfulford added the [Status] Needs Review The issue or pull request needs to be reviewed label Nov 19, 2025
Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

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

I'm wondering if we need to be so restrictive about the max-height here? Like could we bump this up to something like 25vh? ccing @kmwilkerson in case you have some thoughts on this!

@laurelfulford
Copy link
Contributor Author

@dkoo Good call! I followed up with Katie in Linear about that, and she said:

Oh yes this makes sense to me!!

... so I updated the height in 695d30f!

@laurelfulford laurelfulford requested a review from dkoo December 8, 2025 19:02
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Dec 12, 2025
@laurelfulford
Copy link
Contributor Author

Thanks @dkoo!

@laurelfulford laurelfulford merged commit 1a8ea56 into trunk Dec 15, 2025
5 checks passed
@laurelfulford laurelfulford deleted the fix/increase-max-ad-size branch December 15, 2025 18:05
@github-actions
Copy link

Hey @laurelfulford, good job getting this PR merged! 🎉

Now, the needs-changelog label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! ❤️

matticbot pushed a commit that referenced this pull request Jan 9, 2026
# [2.17.0-alpha.1](v2.16.0...v2.17.0-alpha.1) (2026-01-09)

### Bug Fixes

* increase max ad size to allow for label [NPPM-2395] ([#2596](#2596)) ([1a8ea56](1a8ea56))

### Features

* apply the archive styles to the blog posts page ([#2607](#2607)) ([978a103](978a103))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.17.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Jan 19, 2026
# [2.17.0](v2.16.0...v2.17.0) (2026-01-19)

### Bug Fixes

* increase max ad size to allow for label [NPPM-2395] ([#2596](#2596)) ([1a8ea56](1a8ea56))

### Features

* apply the archive styles to the blog posts page ([#2607](#2607)) ([978a103](978a103))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.17.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

released on @alpha released [Status] Approved The pull request has been reviewed and is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants