Skip to content

Commit 91d2d06

Browse files
authored
Merge pull request #14222 from guardian/ih/ab-test-cleanup
Remove expired commercial A/B tests and related code
2 parents e74ffbd + 8342a98 commit 91d2d06

25 files changed

+7
-570
lines changed

dotcom-rendering/src/components/AdBlockAsk.importable.tsx

Lines changed: 0 additions & 228 deletions
This file was deleted.

dotcom-rendering/src/components/AdBlockAskLeaderboard.stories.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

dotcom-rendering/src/components/AdBlockAskMPU.stories.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

dotcom-rendering/src/components/AdSlot.web.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import { ArticleDisplay } from '../lib/articleFormat';
1616
import { getZIndex } from '../lib/getZIndex';
1717
import { LABS_HEADER_HEIGHT } from '../lib/labs-constants';
1818
import { palette as schemedPalette } from '../palette';
19-
import { AdBlockAsk } from './AdBlockAsk.importable';
20-
import { Island } from './Island';
2119

2220
// There are multiple of these ad slots on the page
2321
type IndexedSlot =
@@ -433,7 +431,6 @@ export const AdSlot = ({
433431
isPaidContent = false,
434432
index,
435433
hasPageskin = false,
436-
shouldHideReaderRevenue = false,
437434
isIn250ReservationVariant,
438435
}: Props) => {
439436
switch (position) {
@@ -488,19 +485,6 @@ export const AdSlot = ({
488485
const slotId = 'dfp-ad--right';
489486
return (
490487
<>
491-
<Island
492-
priority="feature"
493-
defer={{ until: 'visible' }}
494-
>
495-
<AdBlockAsk
496-
size="mpu"
497-
slotId={slotId}
498-
isPaidContent={isPaidContent}
499-
shouldHideReaderRevenue={
500-
shouldHideReaderRevenue
501-
}
502-
/>
503-
</Island>
504488
<AdSlotWrapper
505489
css={[
506490
css`

dotcom-rendering/src/components/HeaderAdSlot.tsx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import { adSizes, constants } from '@guardian/commercial';
33
import { space } from '@guardian/source/foundations';
44
import { palette } from '../palette';
55
import type { ServerSideTests } from '../types/config';
6-
import { AdBlockAsk } from './AdBlockAsk.importable';
76
import { AdSlot } from './AdSlot.web';
87
import { Hide } from './Hide';
9-
import { Island } from './Island';
108

119
const headerWrapper = css`
1210
position: static;
@@ -56,15 +54,7 @@ const headerMinSizeStyles = css`
5654
min-width: ${adSizes.leaderboard.width}px;
5755
`;
5856

59-
export const HeaderAdSlot = ({
60-
shouldHideReaderRevenue,
61-
isPaidContent,
62-
abTests,
63-
}: {
64-
shouldHideReaderRevenue: boolean;
65-
isPaidContent: boolean;
66-
abTests: ServerSideTests;
67-
}) => {
57+
export const HeaderAdSlot = ({ abTests }: { abTests: ServerSideTests }) => {
6858
const isIn250ReservationVariant =
6959
abTests.topAboveNav250ReservationVariant === 'variant';
7060
return (
@@ -94,16 +84,6 @@ export const HeaderAdSlot = ({
9484
<div
9585
css={!isIn250ReservationVariant && headerMinSizeStyles}
9686
>
97-
<Island priority="feature" defer={{ until: 'visible' }}>
98-
<AdBlockAsk
99-
size="leaderboard"
100-
slotId="dfp-ad--top-above-nav"
101-
shouldHideReaderRevenue={
102-
shouldHideReaderRevenue
103-
}
104-
isPaidContent={isPaidContent}
105-
/>
106-
</Island>
10787
<AdSlot
10888
position="top-above-nav"
10989
isIn250ReservationVariant={

dotcom-rendering/src/components/Metrics.importable.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
} from '@guardian/core-web-vitals';
1111
import { getCookie, isString, isUndefined } from '@guardian/libs';
1212
import { useCallback, useEffect, useState } from 'react';
13-
import { adBlockAsk } from '../experiments/tests/ad-block-ask';
14-
import { integrateIma } from '../experiments/tests/integrate-ima';
1513
import { useAB } from '../lib/useAB';
1614
import { useAdBlockInUse } from '../lib/useAdBlockInUse';
1715
import { useDetectAdBlock } from '../lib/useDetectAdBlock';
@@ -31,8 +29,6 @@ const willRecordCoreWebVitals = Math.random() < sampling;
3129
// For these tests switch off sampling and collect metrics for 100% of views
3230
const clientSideTestsToForceMetrics: ABTest[] = [
3331
/* keep array multi-line */
34-
integrateIma,
35-
adBlockAsk,
3632
];
3733

3834
const useBrowserId = () => {
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type { ABTest } from '@guardian/ab-core';
22
import { abTestTest } from './tests/ab-test-test';
3-
import { adBlockAsk } from './tests/ad-block-ask';
43
import { auxiaSignInGate } from './tests/auxia-sign-in-gate';
5-
import { consentlessAds } from './tests/consentless-ads';
6-
import { integrateIma } from './tests/integrate-ima';
7-
import { optimiseSpacefinderInline } from './tests/optimise-spacefinder-inline';
84
import { signInGateMainControl } from './tests/sign-in-gate-main-control';
95
import { signInGateMainVariant } from './tests/sign-in-gate-main-variant';
106
import { userBenefitsApi } from './tests/user-benefits-api';
@@ -15,10 +11,6 @@ export const tests: ABTest[] = [
1511
abTestTest,
1612
signInGateMainVariant,
1713
signInGateMainControl,
18-
consentlessAds,
19-
integrateIma,
20-
adBlockAsk,
21-
optimiseSpacefinderInline,
2214
userBenefitsApi,
2315
auxiaSignInGate,
2416
];

0 commit comments

Comments
 (0)