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: locations.placeActionLinks.list
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zawiera listę linków do działań związanych z miejscem w przypadku określonej lokalizacji.
Żądanie HTTP
GET https://mybusinessplaceactions.googleapis.com/v1/{parent=locations/*}/placeActionLinks
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Nazwa lokalizacji, w której będą wyświetlane linki do działań związanych z miejscem. locations/{locationId} .
|
Parametry zapytania
Parametry |
filter |
string
Opcjonalnie: Filtr ograniczający zwrócenie linków do działania związanego z miejscem. Odpowiedź zawiera wpisy pasujące do filtra. Obsługujemy tylko następujący filtr: 1. placeActionType=XYZ, gdzie XYZ to prawidłowy atrybut PlaceActionType.
|
pageSize |
integer
Opcjonalnie: Liczba linków do działań związanych z miejscem, które mają być zwrócone na stronę. Wartość domyślna to 10. Wartość minimalna to 1.
|
pageToken |
string
Opcjonalnie: Jeśli jest określony, zwraca następną stronę linków do działań związanych z miejscem.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Komunikat z odpowiedzią na temat PlaceActions.ListPlaceActionLinks.
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"placeActionLinks": [
{
object (PlaceActionLink )
}
],
"nextPageToken": string
} |
Pola |
placeActionLinks[] |
object (PlaceActionLink )
Zwrócona lista linków do działań związanych z miejscem.
|
nextPageToken |
string
Jeśli linków do działań związanych z miejscem jest więcej niż żądany rozmiar strony, pole to jest zapełniane tokenem umożliwiającym pobranie następnej strony z wynikami.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
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: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eLists place action links for a specified location using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering results by place action type, pagination with page size and token.\u003c/p\u003e\n"],["\u003cp\u003eRequest body should be empty; the response includes an array of PlaceActionLinks and a nextPageToken for pagination.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: locations.placeActionLinks.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListPlaceActionLinksResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nLists the place action links for the specified location.\n\n### HTTP request\n\n`GET https://mybusinessplaceactions.googleapis.com/v1/{parent=locations/*}/placeActionLinks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the location whose place action links will be listed. `locations/{locationId}`. |\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `filter` | `string` Optional. A filter constraining the place action links to return. The response includes entries that match the filter. We support only the following filter: 1. placeActionType=XYZ where XYZ is a valid PlaceActionType. |\n| `pageSize` | `integer` Optional. How many place action links to return per page. Default of 10. The minimum is 1. |\n| `pageToken` | `string` Optional. If specified, returns the next page of place action links. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse message for PlaceActions.ListPlaceActionLinks.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"placeActionLinks\": [ { object (/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionLink) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `placeActionLinks[]` | `object (`[PlaceActionLink](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionLink)`)` The returned list of place action links. |\n| `nextPageToken` | `string` If there are more place action links than the requested page size, then this field is populated with a token to fetch the next page of results. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/business.manage`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]