-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds manual gpid to prebid ad unit and launch to 99% of users (#1651)
* adds manual gpid to prebid ad unit * fix slotconfig spec type issue * refactor to add higher definition ext object * use window config to get page details * use window config to get page details * use slot key for slot name * add 2% ab test for gpid * add gpid to 99% of users * add changeset for release * refator gpid test name * amend userVariant control logic * Update src/experiments/tests/gpid-prebid.ts Co-authored-by: Emma Imber <[email protected]> * extends date for test --------- Co-authored-by: Emma Imber <[email protected]>
- Loading branch information
1 parent
ecc4e1b
commit 9fa6e7d
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@guardian/commercial': patch | ||
--- | ||
|
||
adds gpid for 99% of users to prebid request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { ABTest } from '@guardian/ab-core'; | ||
|
||
export const gpidPrebidAdUnits: ABTest = { | ||
id: 'GpidPrebidAdUnits', | ||
author: '@commercial-dev', | ||
start: '2024-11-15', | ||
expiry: '2024-12-22', | ||
audience: 2 / 100, | ||
audienceOffset: 0 / 100, | ||
audienceCriteria: '', | ||
successMeasure: 'Verify GPID is added to Prebid.js ad units', | ||
description: | ||
'Test to verify that GPID is correctly added to Prebid.js ad units.', | ||
variants: [ | ||
{ | ||
id: 'control', | ||
test: (): void => { | ||
/* no-op */ | ||
}, | ||
}, | ||
{ | ||
id: 'variant', | ||
test: (): void => { | ||
/* no-op */ | ||
}, | ||
}, | ||
], | ||
canRun: () => true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters