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

remove a9 block bidder add for fronts #1692

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dskamiotis
Copy link
Contributor

@dskamiotis dskamiotis commented Dec 4, 2024

What does this change?

This PR reintroduces the ability for GumGum (interscroller ads) to serve on Fronts after being previously blocked.

Changes to A9 module:

  1. Context-Based Filtering:
  • Filters ad units based on the page context:
    • Network front: Includes only the ad unit with slot ID dfp-ad--inline1--mobile.
    • Section front: Includes only the ad unit with slot ID dfp-ad--top-above-nav.
    • Non-front pages: Includes all ad units.
    • For pages that are both articles and fronts, treats them as non-front pages and includes all ad units.

2. Bidder Blocking:

  • Adds a params object to each ad unit with a blockedBidders property:
    Network front: Blocks GumGum for dfp-ad--inline1--mobile.
    Section front: Blocks GumGum for dfp-ad--top-above-nav.

3. Ad Unit Updates:

  • Maps over ad units to include the new params object with blockedBidders, ensuring proper configuration based on context and bidder blocking.

Why?

GumGum interscrollers were blocked in a previous ticket (linked below) but generated significant revenue before the block. Commercial has approved reintroducing them under these controlled conditions to balance user experience and revenue.

Notes

  • "Fronts" refer to prominent pages, including the Network Front (e.g., homepage) and Section Fronts (e.g., category or topic-specific pages).
  • The inline1 and top-above-nav ad slots were chosen based on their positions to optimize both user engagement and ad performance.

Related PR: Add blocked bidder within Amazon A9 for SSP GumGum when on Fronts

Screenshots

Network Front
Screenshot 2024-12-04 at 14 04 29)
Section Front
Screenshot 2024-12-04 at 14 02 30
Article: Non Front page
Screenshot 2024-12-06 at 18 02 08

@dskamiotis dskamiotis requested a review from a team as a code owner December 4, 2024 13:50
Copy link

changeset-bot bot commented Dec 4, 2024

🦋 Changeset detected

Latest commit: bdc534a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@guardian/commercial Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dskamiotis dskamiotis force-pushed the ds/remove-a9-blockbidder-add-for-fronts branch from b0389b1 to db09f35 Compare December 4, 2024 13:52
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Ad load time test results

For consented, top-above-nav took on average 5104ms to load.
For consentless, top-above-nav took on average 3012ms to load.

Test conditions:

  • 5mbps download speed
  • 1.5mbps upload speed
  • 150ms latency

const isNetworkFront =
section === 'uk' || section === 'us' || section === 'au';

const filteredAdUnits = adUnits.filter((adUnit) => {
Copy link
Member

@Jakeii Jakeii Dec 5, 2024

Choose a reason for hiding this comment

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

We still want a9 to work in the other slots, just not gumgum afaik.

Copy link

Choose a reason for hiding this comment

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

Yep, Jake's right. I see the issue here, we want:

  • A9 to run everywhere
  • But prevent GumGum running in certain slots, when it serves on section fronts

As I type this is realise it's quite the messy rule want to chat it through @dskamiotis?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks @Amouzle I have an idea/solution, but will chat it through to confirm if thats ok

Copy link
Member

Choose a reason for hiding this comment

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

This still prevents a9 from running for all the other slots on fronts, it's also preventing all bidders not just GumGum?

Copy link
Contributor Author

@dskamiotis dskamiotis Dec 10, 2024

Choose a reason for hiding this comment

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

@Jakeii I thought we only wanted specif slots for the network and section fronts?
On Network Front === inline1 (as we would like it further down the page)

On Section Fronts === top-above-nav
and all other slots for non fronts?

Copy link
Member

@Jakeii Jakeii Dec 16, 2024

Choose a reason for hiding this comment

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

We want only GumGum to be blocked in the other slots, the code you've got prevents any A9 bidder not just GumGum.
As @Amouzle said above, we still want A9 working everywhere.

@dskamiotis dskamiotis force-pushed the ds/remove-a9-blockbidder-add-for-fronts branch 2 times, most recently from 8ee4ce7 to 476ea15 Compare December 6, 2024 14:30
return adUnit.slotID === 'dfp-ad--inline1--mobile';
}
if (isSectionFront) {
return adUnit.slotID === 'dfp-ad--top-above-nav';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this meant to be 'dfp-ad--top-above-nav--mobile'?

@dskamiotis dskamiotis force-pushed the ds/remove-a9-blockbidder-add-for-fronts branch from 476ea15 to 8c7e2bc Compare December 20, 2024 09:59
@dskamiotis dskamiotis marked this pull request as draft December 20, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants