ลองใช้เซิร์ฟเวอร์ MCP สำหรับ Google Analytics ติดตั้งจาก
GitHub และดูรายละเอียดเพิ่มเติมได้ที่
ประกาศ
MatchingCondition
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
กำหนดเงื่อนไขสำหรับกรณีที่กฎการแก้ไขเหตุการณ์หรือการสร้างเหตุการณ์มีผลกับเหตุการณ์
การแสดง JSON |
{
"field": string,
"comparisonType": enum (ComparisonType ),
"value": string,
"negated": boolean
} |
ช่อง |
field |
string
ต้องระบุ ชื่อของช่องที่จะใช้เปรียบเทียบสำหรับเงื่อนไข หาก "eventName" เงื่อนไขนี้จะมีผลกับชื่อเหตุการณ์ มิเช่นนั้น ระบบจะใช้เงื่อนไขกับพารามิเตอร์ที่มีชื่อที่ระบุ ค่านี้ต้องไม่มีเว้นวรรค
|
comparisonType |
enum (ComparisonType )
ต้องระบุ ประเภทของการเปรียบเทียบที่จะใช้กับค่า
|
value |
string
ต้องระบุ ค่าที่จะเปรียบเทียบสำหรับเงื่อนไขนี้ การใช้งานรันไทม์อาจบังคับประเภทของค่านี้เพื่อประเมินเงื่อนไขนี้ตามประเภทของค่าพารามิเตอร์
|
negated |
boolean
ควรปฏิเสธผลลัพธ์ของการเปรียบเทียบหรือไม่ เช่น หาก negated เป็นจริง ก็ให้ "เท่ากับ" การเปรียบเทียบจะทำงานเป็น 'ไม่เท่ากับ'
|
ComparisonType
ประเภทการเปรียบเทียบสำหรับเงื่อนไขการจับคู่
Enum |
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. |"]]