[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eUpdates the enhanced measurement settings for a given data stream within a Google Analytics property.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003eanalytics.edit\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP PATCH request with path and query parameters to identify the data stream and specify the updated fields.\u003c/p\u003e\n"],["\u003cp\u003eIncludes a request body containing the desired EnhancedMeasurementSettings and responds with the updated settings on success.\u003c/p\u003e\n"]]],["This document details how to update enhanced measurement settings for a data stream via a PATCH request. Key actions include using the specified URL with gRPC Transcoding syntax, providing the `enhancedMeasurementSettings.name` in the path, and utilizing the `updateMask` query parameter to define fields for modification. The request body contains `EnhancedMeasurementSettings` and a successful response will also include an instance of `EnhancedMeasurementSettings`. Access requires the `analytics.edit` authorization scope.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.\n\nHTTP request\n\n`PATCH https://analyticsadmin.googleapis.com/v1alpha/{enhancedMeasurementSettings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enhancedMeasurementSettings.name` | `string` Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{dataStream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\" |\n\nQuery parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"\\*\" to match all fields. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\nRequest body\n\nThe request body contains an instance of [EnhancedMeasurementSettings](/analytics/devguides/config/admin/v1/rest/v1alpha/EnhancedMeasurementSettings).\n\nResponse body\n\nIf successful, the response body contains an instance of [EnhancedMeasurementSettings](/analytics/devguides/config/admin/v1/rest/v1alpha/EnhancedMeasurementSettings).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.edit`"]]