Skip to content

Commit 416183f

Browse files
committed
feat(nimbus): Advanced targeting for users who have not accepted ToU yet and are on Mac or Win
1 parent 025cd85 commit 416183f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

experimenter/experimenter/targeting/constants.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,16 @@ def __post_init__(self):
25272527
application_choice_names=(Application.DESKTOP.name,),
25282528
)
25292529

2530+
TOU_NOT_ACCEPTED_ADS_ENABLED_MAC_OR_WIN = NimbusTargetingConfig(
2531+
name="TOU not accepted yet, ads enabled, Mac or Win",
2532+
slug="tou_not_accepted_ads_enabled_mac_win",
2533+
description="Users who have not accepted the terms of use yet, have not disabled ads, and are on Mac or Windows",
2534+
targeting=f"(os.isWindows || os.isMac) && (('browser.preonboarding.enrolledInOnTrainRollout'|preferenceValue && 'datareporting.policy.dataSubmissionPolicyAcceptedVersion'|preferenceValue >= 2) || 'datareporting.policy.dataSubmissionPolicyAcceptedVersion'|preferenceValue == 3) && ('browser.newtabpage.activity-stream.showSponsoredTopSites'|preferenceValue && 'browser.urlbar.suggest.quicksuggest.sponsored'|preferenceValue && 'browser.newtabpage.activity-stream.showSponsored'|preferenceValue)",
2535+
desktop_telemetry="",
2536+
sticky_required=False,
2537+
is_first_run_required=False,
2538+
application_choice_names=(Application.DESKTOP.name,),
2539+
)
25302540

25312541
class TargetingConstants:
25322542
TARGETING_VERSION = "version|versionCompare('{version}') >= 0"

0 commit comments

Comments
 (0)