Google アナリティクスの MCP サーバーを試します。
GitHub からインストールし、詳細については
お知らせをご覧ください。
MatchingCondition
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
イベントの編集ルールまたはイベント作成ルールをイベントに適用する条件を定義します。
JSON 表現 |
{
"field": string,
"comparisonType": enum (ComparisonType ),
"value": string,
"negated": boolean
} |
フィールド |
field |
string
必須。条件の比較対象となるフィールドの名前。「eventName」の場合指定されている場合、この条件はイベントの名前に適用されます。それ以外の場合、条件は指定された名前のパラメータに適用されます。 この値にスペースを含めることはできません。
|
comparisonType |
enum (ComparisonType )
必須。値に適用する比較のタイプ。
|
value |
string
必須。この条件の比較対象の値。ランタイム実装では、この値の型強制変換を実行して、パラメータ値の型に基づいてこの条件を評価できます。
|
negated |
boolean
比較結果を否定するかどうか。たとえば、negated が true の場合、「次と等しい」となります。比較は「等しくない」として機能します。
|
ComparisonType
列挙型 |
COMPARISON_TYPE_UNSPECIFIED |
不明 |
EQUALS |
等しい、大文字と小文字を区別 |
EQUALS_CASE_INSENSITIVE |
等しい(大文字と小文字を区別しない) |
CONTAINS |
次を含む(大文字と小文字を区別) |
CONTAINS_CASE_INSENSITIVE |
次を含む、大文字と小文字を区別しない |
STARTS_WITH |
次で始まる(大文字と小文字を区別) |
STARTS_WITH_CASE_INSENSITIVE |
次で始まる(大文字と小文字を区別しない) |
ENDS_WITH |
次で終わる(大文字と小文字を区別) |
ENDS_WITH_CASE_INSENSITIVE |
次で終わる(大文字と小文字を区別しない) |
GREATER_THAN |
次より大きい |
GREATER_THAN_OR_EQUAL |
次の値以上 |
LESS_THAN |
次より小さい |
LESS_THAN_OR_EQUAL |
次の値以下 |
REGULAR_EXPRESSION |
使用します。ウェブ ストリームでのみサポートされています。 |
REGULAR_EXPRESSION_CASE_INSENSITIVE |
正規表現で、大文字と小文字は区別されません。ウェブ ストリームでのみサポートされています。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eMatchingCondition defines criteria for when an Event Edit or Event Creation rule is applied, based on event properties.\u003c/p\u003e\n"],["\u003cp\u003eIt uses a comparison between a specified event field and a given value, with options for case sensitivity and negation.\u003c/p\u003e\n"],["\u003cp\u003eSupported comparison types include equality, containment, starts/ends with, greater/less than, and regular expressions (web streams only).\u003c/p\u003e\n"],["\u003cp\u003eThe condition can be applied to the event name or any event parameter, enabling flexible rule creation.\u003c/p\u003e\n"]]],["This describes a matching condition used in event rules, defined via a JSON object with `field`, `comparisonType`, `value`, and `negated`. The `field` specifies the parameter or 'eventName' for comparison. The `comparisonType` defines the comparison method, such as `EQUALS`, `CONTAINS`, or `GREATER_THAN`. The `value` is the comparison target, and `negated` inverts the comparison result. Available `comparisonType` options also include case-insensitive variants and regular expression matching.\n"],null,["# MatchingCondition\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ComparisonType](#ComparisonType)\n\nDefines a condition for when an Event Edit or Event Creation rule applies to an event.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"field\": string, \"comparisonType\": enum (/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition#ComparisonType), \"value\": string, \"negated\": boolean } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `field` | `string` Required. The name of the field that is compared against for the condition. If 'eventName' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name. This value cannot contain spaces. |\n| `comparisonType` | `enum (`[ComparisonType](/analytics/devguides/config/admin/v1/rest/v1alpha/MatchingCondition#ComparisonType)`)` Required. The type of comparison to be applied to the value. |\n| `value` | `string` Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value. |\n| `negated` | `boolean` Whether or not the result of the comparison should be negated. For example, if `negated` is true, then 'equals' comparisons would function as 'not equals'. |\n\nComparisonType\n--------------\n\nComparison type for matching condition\n\n| Enums ||\n|---------------------------------------|-----------------------------------------------------------------------|\n| `COMPARISON_TYPE_UNSPECIFIED` | Unknown |\n| `EQUALS` | Equals, case sensitive |\n| `EQUALS_CASE_INSENSITIVE` | Equals, case insensitive |\n| `CONTAINS` | Contains, case sensitive |\n| `CONTAINS_CASE_INSENSITIVE` | Contains, case insensitive |\n| `STARTS_WITH` | Starts with, case sensitive |\n| `STARTS_WITH_CASE_INSENSITIVE` | Starts with, case insensitive |\n| `ENDS_WITH` | Ends with, case sensitive |\n| `ENDS_WITH_CASE_INSENSITIVE` | Ends with, case insensitive |\n| `GREATER_THAN` | Greater than |\n| `GREATER_THAN_OR_EQUAL` | Greater than or equal |\n| `LESS_THAN` | Less than |\n| `LESS_THAN_OR_EQUAL` | Less than or equal |\n| `REGULAR_EXPRESSION` | regular expression. Only supported for web streams. |\n| `REGULAR_EXPRESSION_CASE_INSENSITIVE` | regular expression, case insensitive. Only supported for web streams. |"]]