Method: organizations.analyticsAccountLinks.setPropertyServiceLevel
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\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. |"]]