From 46c3c48b6c3e3e7f9588c089d44bdfcaf4cd0e1b Mon Sep 17 00:00:00 2001 From: t-p-white <1833156+t-p-white@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:25:56 +0100 Subject: [PATCH 1/2] Update constants.py --- .../experimenter/targeting/constants.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/experimenter/experimenter/targeting/constants.py b/experimenter/experimenter/targeting/constants.py index 0dbe07debc..ee691bf9a6 100644 --- a/experimenter/experimenter/targeting/constants.py +++ b/experimenter/experimenter/targeting/constants.py @@ -2503,6 +2503,37 @@ def __post_init__(self): application_choice_names=(Application.FENIX.name,), ) +ANDROID_EXISTING_USERS_NOT_ACCEPTED_TERMS_OF_USE = NimbusTargetingConfig( + name="Existing users who have not accepted Terms of Use", + slug="android_existing_users_not_accepted_terms_of_use", + description="Existing users for 28+ days who have not accepted Terms of Use", + targeting="user_accepted_tou == false && days_since_install >= 28", + desktop_telemetry="", + sticky_required=False, + is_first_run_required=False, + application_choice_names=(Application.FENIX.name,), +) + +ANDROID_EXISTING_USERS_NOT_ACCEPTED_TOU_AND_NO_SPONSORED_OPT_OUTS = NimbusTargetingConfig( + name=( + "Existing users for 28+ days who have not accepted Terms of Use " + "and have not opted out of any sponsored content" + ), + slug="android_existing_users_not_accepted_terms_of_use_no_shortcuts_or_stories_opt_outs", + description=( + "Targeting users who have NOT accepted the Terms of Use " + "and have NOT opted out of any sponsored content" + ), + targeting=( + "user_accepted_tou == false && no_shortcuts_or_stories_opt_outs == true " + "&& days_since_install >= 28" + ), + desktop_telemetry="", + sticky_required=False, + is_first_run_required=False, + application_choice_names=(Application.FENIX.name,), +) + TOU_TARGETING_ANDROID_NOT_ACCEPTED = NimbusTargetingConfig( name="Users that have not accepted the Terms of Use", slug="users_not_accepted_tou", From 1ec8668d2be7cf97379675dec988d0d85830f593 Mon Sep 17 00:00:00 2001 From: t-p-white <1833156+t-p-white@users.noreply.github.com> Date: Tue, 21 Oct 2025 15:40:16 +0100 Subject: [PATCH 2/2] Update constants.py --- experimenter/experimenter/targeting/constants.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/experimenter/experimenter/targeting/constants.py b/experimenter/experimenter/targeting/constants.py index ee691bf9a6..76c719c85c 100644 --- a/experimenter/experimenter/targeting/constants.py +++ b/experimenter/experimenter/targeting/constants.py @@ -2534,6 +2534,7 @@ def __post_init__(self): application_choice_names=(Application.FENIX.name,), ) +# Obselete: To be deleted in https://bugzilla.mozilla.org/show_bug.cgi?id=1995564 TOU_TARGETING_ANDROID_NOT_ACCEPTED = NimbusTargetingConfig( name="Users that have not accepted the Terms of Use", slug="users_not_accepted_tou", @@ -2556,6 +2557,7 @@ def __post_init__(self): application_choice_names=(Application.FENIX.name,), ) +# Obselete: To be deleted in https://bugzilla.mozilla.org/show_bug.cgi?id=1995564 TOU_TARGETING_ANDROID_NOT_ACCEPTED_AND_NO_SPONSORED_OPT_OUTS = NimbusTargetingConfig( name=( "Users that have not accepted the Terms of Use "