Skip to content

Commit

Permalink
Block GumGum on fronts (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii authored Nov 7, 2024
1 parent e8a8717 commit 0cd37f5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-penguins-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/commercial': minor
---

block GumGum on fronts
6 changes: 6 additions & 0 deletions src/lib/header-bidding/a9/a9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ const bidderTimeout = 1500;
const initialise = (): void => {
if (!initialised && window.apstag) {
initialised = true;
const blockedBidders = window.guardian.config.page.isFront
? [
'1lsxjb4', // GumGum, as they have been showing wonky formats on fronts
]
: [];
window.apstag.init({
pubID: window.guardian.config.page.a9PublisherId,
adServer: 'googletag',
bidTimeout: bidderTimeout,
blockedBidders,
});
}
};
Expand Down
1 change: 1 addition & 0 deletions src/types/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ type ApstagInitConfig = {
pubID: string;
adServer?: string;
bidTimeout?: number;
blockedBidders?: string[];
};

type FetchBidsBidConfig = {
Expand Down

0 comments on commit 0cd37f5

Please sign in to comment.