How can I add a new advanced targeting option for experiment audiences?
To add new advanced targeting you can open a PR against the
constants.py file in Experimenter. All that’s needed is to add a new
NimbusTargetingConfig object, e.g.:
NEW_ANDROID_13_USERS = NimbusTargetingConfig(
name="New Android 13 Users",
description="Users who have Android 13 and are on their first run of the application",
targeting="(android_sdk_version|versionCompare('33') >= 0) && is_first_run",
If you need help writing the targeting expression, let us know in
#ask-experimenter on Slack.