接続されたオーディエンスオブジェクト
接続されたオーディエンス・オブジェクトは、メッセージを送信するオーディエンスを特定するセレクタである。
このオブジェクトは、AND または OR 演算子を使用した論理式で、1つの接続オーディエンスフィルター、または複数の接続オーディエンスフィルターで構成されます。
複数フィルターの例:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"AND":
[
Connected Audience Filter,
{
"OR" :
[
Connected Audience Filter,
Connected Audience Filter
]
},
Connected Audience Filter
]
}
接続オーディエンスフィルター
複数のカスタム属性フィルターを組み合わせると、接続オーディエンスフィルターが作成され、AND および OR 演算子と組み合わせると、接続オーディエンスフィルターが作成されます。
カスタム属性フィルター
このフィルターによって、ユーザーのカスタム属性に基づいてセグメント化することができる。これらのフィルターには最大3つのフィールドが含まれる:
1
2
3
4
5
6
7
8
{
"custom_attribute":
{
"custom_attribute_name": (String) the name of the custom attribute to filter on,
"comparison": (String) one of the allowed comparisons to make against the provided value,
"value": (String, Numeric, Boolean) the value to be compared using the provided comparison
}
}
データ型による比較を許可する
カスタム属性のデータ型は、与えられたフィルターで有効な比較を決定する。
| カスタム属性タイプ | 許容される比較 |
|---|---|
| 文字列 | equalsnot_equal,matches_regex,does_not_match_regex,exists 、 does_not_exist |
| 配列 | includes_valuedoes_not_include_value,exists 、 does_not_exist |
| 数値 | equalsnot_equal,greater_than,greater_than_or_equal_to,less_than,less_than_or_equal_to,exists 、 does_not_exist |
| ブール値 | equalsdoes_not_equal,exists 、 does_not_exist |
| 時刻 | less_than_x_days_agogreater_than_x_days_ago,less_than_x_days_in_the_future,greater_than_x_days_in_the_future,after,before,exists 、 does_not_exist |
属性比較の注意点
| 比較 | その他の考慮事項 |
|---|---|
value |
exists または does_not_exist の比較を使用する場合、value は必要ありません。before および after の比較を使用する場合、value は ISO 8601 日時文字列である必要があります。 |
matches_regex |
matches_regex 比較を使う場合、渡される値は文字列でなければならない。Braze での正規表現の使用については、正規表現とカスタム属性のデータ型を参照してください。 |
カスタム属性の例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"custom_attribute":
{
"custom_attribute_name": "eye_color",
"comparison": "equals",
"value": "blue"
}
}
{
"custom_attribute":
{
"custom_attribute_name": "favorite_foods",
"comparison": "includes_value",
"value": "pizza"
}
}
{
"custom_attribute":
{
"custom_attribute_name": "last_purchase_time",
"comparison": "less_than_x_days_ago",
"value": 2
}
}
プッシュ通知のサブスクリプションのフィルター
このフィルターによって、ユーザーのプッシュ通知のサブスクリプションステータスに基づいてセグメント化することができます。
フィルター本文
1
2
3
4
5
6
7
{
"push_subscription_status":
{
"comparison": (String) one of the following allowed comparisons,
"value": (String) one of the following allowed values
}
}
- 許容される比較:
is,is_not - 許容される値
opted_insubscribed、unsubscribed
メール通知のサブスクリプションのフィルター
このフィルターによって、ユーザーのメール通知のサブスクリプションステータスに基づいてセグメント化することができます。
フィルター本文
1
2
3
4
5
6
7
{
"email_subscription_status":
{
"comparison": (String) one of the following allowed comparisons,
"value": (String) one of the following allowed values
}
}
- 許容される比較:
is,is_not - 許容される値
opted_insubscribed、unsubscribed
最後に使用したアプリフィルター
このフィルターにより、ユーザーが最後にアプリを利用したのはいつなのかに基づいてセグメントすることができる。これらのフィルターには2つのフィールドがある:
フィルター本文
1
2
3
4
5
6
7
{
"last_used_app":
{
"comparison": (String) one of the allowed comparisons listed,
"value": (String) the value to be compared using the provided comparison
}
}
- 許容される比較:
after,before - 許容される値:datetime (ISO 8601 文字列)
考慮事項
接続オーディエンスは、デフォルト属性、カスタムイベント、セグメント、またはメッセージエンゲージメントイベントによってユーザーをフィルターすることはできません。これらのフィルターを使用するには、それらをオーディエンスセグメントに組み込み、そのセグメントを segment_id に指定することをお勧めします。
New Stuff!
GitHub でこのページを編集