Method: properties.get
Поиск одного свойства GA.
HTTP-запрос
GET https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
name | string Необходимый. Имя свойства для поиска. Формат: свойства/{property_id} Пример: "свойства/1000" |
Тело запроса
Тело запроса должно быть пустым.
Тело ответа
В случае успеха тело ответа содержит экземпляр Property
.
Области авторизации
Требуется одна из следующих областей OAuth:
-
https://www.googleapis.com/auth/analytics.readonly
-
https://www.googleapis.com/auth/analytics.edit
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-14 UTC.
[null,null,["Последнее обновление: 2025-01-14 UTC."],[[["This document explains how to retrieve a single Google Analytics 4 property using the Google Analytics Admin API."],["You will need to make an HTTP GET request to the specified endpoint, providing the property ID as a path parameter."],["The request body should be empty, and a successful response will contain the details of the requested property."],["Authorization is required using one of the specified OAuth scopes: `https://www.googleapis.com/auth/analytics.readonly` or `https://www.googleapis.com/auth/analytics.edit`."]]],["The core content describes how to retrieve a single Google Analytics property using a `GET` request to the specified URL (`https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*}`). The `name` parameter (e.g., \"properties/1000\") within the URL path is required to identify the specific property. The request body must be empty. A successful request returns a `Property` instance in the response body. Authorization requires either `analytics.readonly` or `analytics.edit` OAuth scopes.\n"]]