Method: organizations.analyticsAccountLinks.setPropertyServiceLevel
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThis API updates the service level for an Analytics property within a specified Analytics account link.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the Analytics property and the desired service level (standard or premium).\u003c/p\u003e\n"],["\u003cp\u003eUsers need the \u003ccode\u003ehttps://www.googleapis.com/auth/marketingplatformadmin.analytics.update\u003c/code\u003e authorization scope to make this request.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint uses gRPC Transcoding and expects a POST request with path and request body parameters as detailed in the documentation.\u003c/p\u003e\n"]]],["This content describes updating the service level for an Analytics property using the `setPropertyServiceLevel` method. It requires a `POST` request to a specified URL, including a required `analyticsAccountLink` path parameter. The request body must contain the `analyticsProperty` (property ID) and the desired `serviceLevel` (either `STANDARD` or `360`). Successful requests return an empty response, while the process requires the `marketingplatformadmin.analytics.update` OAuth scope for authorization.\n"],null,["# Method: organizations.analyticsAccountLinks.setPropertyServiceLevel\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [AnalyticsServiceLevel](#AnalyticsServiceLevel)\n- [Try it!](#try-it)\n\nUpdates the service level for an Analytics property.\n\n### HTTP request\n\n`POST https://marketingplatformadmin.googleapis.com/v1alpha/{analyticsAccountLink=organizations/*/analyticsAccountLinks/*}:setPropertyServiceLevel`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `analyticsAccountLink` | `string` Required. The parent AnalyticsAccountLink scope where this property is in. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"analyticsProperty\": string, \"serviceLevel\": enum (/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks/setPropertyServiceLevel#AnalyticsServiceLevel) } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `analyticsProperty` | `string` Required. The Analytics property to change the ServiceLevel setting. This field is the name of the Google Analytics Admin API property resource. Format: analyticsadmin.googleapis.com/properties/{property_id} |\n| `serviceLevel` | `enum (`[AnalyticsServiceLevel](/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks/setPropertyServiceLevel#AnalyticsServiceLevel)`)` Required. The service level to set for this property. |\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/marketingplatformadmin.analytics.update`\n\nAnalyticsServiceLevel\n---------------------\n\nVarious levels of service for Google Analytics.\n\n| Enums ||\n|---------------------------------------|-------------------------------------------|\n| `ANALYTICS_SERVICE_LEVEL_UNSPECIFIED` | Service level unspecified. |\n| `ANALYTICS_SERVICE_LEVEL_STANDARD` | The standard version of Google Analytics. |\n| `ANALYTICS_SERVICE_LEVEL_360` | The premium version of Google Analytics. |"]]