Skip to main content

How to Use Custom Attributes as Release Conditions

Shiply provides default condition attributes such as region, time, and app version number, and also supports custom attributes to meet customized needs, such as custom "gender", "age", "hobbies", and other condition attributes.

I. Create Custom Condition Attributes

1.1 On the Custom Attributes tab under Conditions & Audience Packages, click the "New Custom Attribute" button;

Alt text

1.2 Enter the attribute key name, select the attribute value type and effective scope, then click OK;

Alt text

Attribute value types include string/int/float/bool/list/select/version number/audience package. Here is a brief introduction to list and select:

  • list: Supports users entering a set of option values, with different options separated by Enter;
  • select (multi-select): Requires preset option value ranges; users select from the preset range during actual use; Alt text

II. Apply Custom Condition Attributes

After creating custom attributes, you can see the created attributes on the new configuration task page or edit task page. Click to apply directly: Alt text

Note

Custom condition attributes must be used together with the SDK. For example, if the task delivery condition is "user age greater than 10", the business must set the current app user's attribute through the SDK interface: rdelivery#setCustomParam("age","${current user age}")

Was this page helpful?