Skip to content

Commit

Permalink
Add 300x50 size to Prebid for mobile-sticky (#1406)
Browse files Browse the repository at this point in the history
* Add 300x50 size to Prebid for mobile-sticky and changeset

* Fix slot-config test
  • Loading branch information
deedeeh authored Jun 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 306f8c2 commit 2ac1ca4
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-apes-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/commercial': minor
---

Adds 300x50 ad size to Prebid for mobile-sticky
2 changes: 1 addition & 1 deletion src/lib/header-bidding/slot-config.spec.ts
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ describe('getPrebidAdSlots', () => {
).toEqual([
{
key: 'mobile-sticky',
sizes: [createAdSize(320, 50)],
sizes: [createAdSize(320, 50), createAdSize(300, 50)],
},
]);
});
4 changes: 3 additions & 1 deletion src/lib/header-bidding/slot-config.ts
Original file line number Diff line number Diff line change
@@ -188,7 +188,9 @@ const getSlots = (): HeaderBiddingSizeMapping => {
],
},
'mobile-sticky': {
mobile: shouldIncludeMobileSticky() ? [adSizes.mobilesticky] : [],
mobile: shouldIncludeMobileSticky()
? [adSizes.mobilesticky, createAdSize(300, 50)]
: [],
},
'crossword-banner': {
desktop: isCrossword ? [adSizes.leaderboard] : [],

0 comments on commit 2ac1ca4

Please sign in to comment.