Method: properties.fetchConnectedGa4Property
지정된 UA 속성이 있으면 이 속성에 연결된 GA4 속성을 조회합니다. 참고: GA4 속성에서는 사용할 수 없습니다.
HTTP 요청
GET https://analyticsadmin.googleapis.com/v1alpha/properties:fetchConnectedGa4Property
URL은 gRPC 트랜스코딩 구문을 사용합니다.
쿼리 매개변수
매개변수 |
property |
string
필수 항목입니다. 연결된 GA4 속성을 조회할 UA 속성입니다. 이 요청은 UA-XXXXXX-YY 형식의 추적 ID가 아닌 내부 속성 ID를 사용합니다. 형식: properties/{internal_web_property_id} 예: properties/1234
|
응답 본문
UA 속성에 연결된 GA4 속성 조회에 대한 응답입니다.
성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.
JSON 표현 |
{
"property": string
} |
필드 |
property |
string
UA 속성에 연결된 GA4 속성 연결된 GA4 속성이 없으면 빈 문자열이 반환됩니다. 형식: properties/{property_id} 예: properties/1234
|
승인 범위
다음 OAuth 범위 중 하나가 필요합니다.
https://www.googleapis.com/auth/analytics.readonly
https://www.googleapis.com/auth/analytics.edit
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-29(UTC)
[null,null,["최종 업데이트: 2024-08-29(UTC)"],[[["This document details how to look up the connected Google Analytics 4 (GA4) property for a given Universal Analytics (UA) property using the Google Analytics Admin API."],["The API request requires the internal UA property ID and returns the connected GA4 property ID, if any."],["Authentication requires specific OAuth scopes for either read-only or edit access to Analytics data."],["It is important to note that this functionality cannot be used with GA4 properties and requires an empty request body."]]],["This document details how to find a connected GA4 property using its associated UA property. A `GET` request to `https://analyticsadmin.googleapis.com/v1alpha/properties:fetchConnectedGa4Property` is made. The request requires a `property` query parameter, which is the UA property's internal ID, formatted as `properties/{internal_web_property_id}`. The request body must be empty. The response body returns a JSON structure containing a `property` field with the GA4 property ID or an empty string if none exists. The request needs authorization with specific OAuth scopes.\n"]]