חובה. נכס ה-UA שעבורו צריך לחפש את נכס GA4 המקושר. לתשומת ליבכם: הבקשה הזו משתמשת במזהה הנכס הפנימי, ולא במזהה לצורכי המעקב בפורמט UA-XXXXXX-YY. פורמט: properties/{internal_web_property_id} דוגמה: properties/1234
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
תשובה לחיפוש נכס GA4 שמקושר לנכס UA.
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל נתונים במבנה הבא:
ייצוג JSON
{"property": string}
שדות
property
string
נכס GA4 שמקושר לנכס UA. אם אין נכס GA4 מקושר, מוחזרת מחרוזת ריקה. פורמט: properties/{property_id} דוגמה: properties/1234
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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"]]