Method: properties.getDataRetentionSettings
このプロパティのシングルトン データ保持設定を返します。
HTTP リクエスト
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataRetentionSettings}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。検索する設定の名前。形式: properties/{property}/dataRetentionSettings 例: 「properties/1000/dataRetentionSettings」
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には DataRetentionSettings
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-05-06 UTC。
[null,null,["最終更新日 2024-05-06 UTC。"],[[["Retrieves the data retention settings for a specific Google Analytics 4 property."],["Uses an HTTP GET request with the property ID specified in the path parameter."],["Requires authentication with appropriate OAuth scopes for read or edit access to Analytics data."],["Returns a DataRetentionSettings object containing the property's data retention configuration upon successful execution."],["Request body should be empty."]]],["This document details retrieving data retention settings for a specific property. A `GET` request is made to a URL containing the property's name, using gRPC Transcoding syntax. The `name` path parameter, formatted as \"properties/{property}/dataRetentionSettings,\" is required. The request body must be empty. A successful response returns `DataRetentionSettings`. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]