Method: properties.getDataRetentionSettings
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
This page provides details on how to retrieve the data retention settings for a specific property using an HTTP GET request.
The request requires a 'name' parameter in the path URL, specifying the property and the data retention settings you want to look up.
The request body must be empty, and a successful response will contain an instance of DataRetentionSettings.
Authorization to access this information requires either the https://www.googleapis.com/auth/analytics.readonly or https://www.googleapis.com/auth/analytics.edit OAuth scope.
[[["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-09 UTC."],[],["This document details retrieving data retention settings for a property using a `GET` request. The core action is to `GET` data from the specified URL, `https://analyticsadmin.googleapis.com/v1beta/{name=properties/*/dataRetentionSettings}`, using gRPC Transcoding syntax. The `name` path parameter, formatted as \"properties/{property}/dataRetentionSettings\", is required. The request body must be empty. A successful response will include an instance of `DataRetentionSettings`. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]