Interfejs
Google Business Performance API udostępnia
NOWĄ metodę interfejsu API, która umożliwia pobieranie wielu parametrów „DailyMetrics” w jednym żądaniu API.
Zapoznaj się z
harmonogramem wycofywania i instrukcjami, jak przejść z metody raportu API w wersji 4 na interfejs Google Business Profile Performance API.
Method: accounts.locations.getGoogleUpdated
Pobiera zaktualizowaną przez Google wersję określonej lokalizacji. Zwraca wartość NOT_FOUND
, jeśli lokalizacja nie istnieje.
Żądanie HTTP
GET https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:googleUpdated
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
name |
string
Nazwa lokalizacji do pobrania.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Przedstawia lokalizację zmodyfikowaną przez Google.
Zapis JSON |
{
"location": {
object (Location )
},
"diffMask": string
} |
Pola |
location |
object (Location )
Zaktualizowana przez Google wersja tej lokalizacji.
|
diffMask |
string (FieldMask format)
Pola zaktualizowane przez Google. Jest to rozdzielana przecinkami lista w pełni kwalifikowanych nazw pól. Przykład: "user.displayName,photo" .
|
Zakresy autoryzacji
Wymaga jednego z tych zakresów protokołu OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Więcej informacji znajdziesz w artykule Omówienie protokołu OAuth 2.0.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["Retrieves the Google-updated version of a specified location using a GET request."],["Requires providing the location name as a path parameter."],["Returns a JSON response containing the updated location data and a diff mask indicating the modified fields."],["Needs authorization with specific OAuth scopes like `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage`."]]],["This describes retrieving a Google-updated location using a `GET` request to a specific URL (`https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:googleUpdated`). The `name` path parameter identifies the location. The request body must be empty. A successful response contains a JSON object with the updated location data, including the `location` object and a `diffMask` string that specifies changed fields. Authorization requires either the `plus.business.manage` or `business.manage` OAuth scope.\n"]]