La API de
Google Business Performance tiene un método de API
NUEVO que permite recuperar varias métricas "DailyMetrics" en una sola solicitud a la API.
Revise el
programa de baja y las instrucciones para migrar del método de la API de reportInsights versión 4 a la API de rendimiento del Perfil de Negocio de Google.
REST Resource: locations.placeActionLinks
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Recurso: PlaceActionLink
Representa un vínculo de acción de lugar y sus atributos.
Representación JSON |
{
"name": string,
"providerType": enum (ProviderType ),
"isEditable": boolean,
"uri": string,
"placeActionType": enum (PlaceActionType ),
"isPreferred": boolean,
"createTime": string,
"updateTime": string
} |
Campos |
name |
string
Opcional. El nombre del recurso, en el formato locations/{locationId}/placeActionLinks/{place_action_link_id} . El campo de nombre solo se considerará en las solicitudes de placeActionLinks.patch y placeActionLinks.delete para actualizar y borrar vínculos, respectivamente. Sin embargo, se ignorará en la solicitud placeActionLinks.create, en la que el servidor asignará place_action_link_id cuando se cree correctamente un vínculo nuevo y se mostrará como parte de la respuesta.
|
providerType |
enum (ProviderType )
Solo salida. Especifica el tipo de proveedor.
|
isEditable |
boolean
Solo salida. Indica si el cliente puede editar este vínculo.
|
uri |
string
Obligatorio. Es el URI del vínculo. Se puede volver a usar el mismo URI para distintos tipos de acción en distintas ubicaciones. Sin embargo, solo se permite un vínculo de acción de lugar para cada combinación única de (URI, tipo de acción de lugar, ubicación).
|
placeActionType |
enum (PlaceActionType )
Obligatorio. El tipo de acción de lugar que se puede realizar mediante este vínculo.
|
isPreferred |
boolean
Opcional. Indica si el comercio prefiere este vínculo. Solo se puede marcar un vínculo como preferido por tipo de acción de lugar en una ubicación. Si una solicitud futura marca un vínculo diferente como preferido para el mismo tipo de acción de lugar, el vínculo preferido actual (si existe) perderá su preferencia.
|
createTime |
string (Timestamp format)
Solo salida. Indica la hora en la que se creó el vínculo de acción de lugar. Una marca de tiempo en formato RFC3339 UTC “Zulú”, con una resolución de nanosegundos y hasta nueve dígitos fraccionarios. Ejemplos: "2014-10-02T15:01:23Z" y "2014-10-02T15:01:23.045123456Z" .
|
updateTime |
string (Timestamp format)
Solo salida. Indica la hora en que se modificó por última vez el vínculo de acción de lugar. Una marca de tiempo en formato RFC3339 UTC “Zulú”, con una resolución de nanosegundos y hasta nueve dígitos fraccionarios. Ejemplos: "2014-10-02T15:01:23Z" y "2014-10-02T15:01:23.045123456Z" .
|
ProviderType
El tipo de proveedor de vínculos solo se puede leer.
Enumeraciones |
PROVIDER_TYPE_UNSPECIFIED |
No se especifica. |
MERCHANT |
Un proveedor propio, como un comercio, o una agencia en nombre de un comercio |
AGGREGATOR_3P |
Un agregador externo, como un socio de Reserve with Google |
PlaceActionType
El tipo de acción de lugar que se puede realizar mediante el vínculo.
Enumeraciones |
PLACE_ACTION_TYPE_UNSPECIFIED |
No se especifica. |
APPOINTMENT |
El tipo de acción es reservar una cita. |
ONLINE_APPOINTMENT |
El tipo de acción es reservar una cita en línea. |
DINING_RESERVATION |
El tipo de acción consiste en hacer una reserva en un restaurante. |
FOOD_ORDERING |
El tipo de acción es pedir comida para llevar o con entrega a domicilio. |
FOOD_DELIVERY |
El tipo de acción es pedir comida para entrega a domicilio. |
FOOD_TAKEOUT |
El tipo de acción es pedir comida para llevar. |
SHOP_ONLINE |
El tipo de acción es comprar, que puede ser entrega a domicilio o retiro. |
Métodos |
|
Crea un vínculo de acción de lugar asociado con la ubicación especificada y lo muestra. |
|
Borra un vínculo de acción de lugar de la ubicación especificada. |
|
Obtiene el vínculo de acción del lugar especificado. |
|
Muestra una lista de los vínculos de acción de lugar correspondientes a la ubicación especificada. |
|
Actualiza el vínculo de acción de lugar especificado y lo muestra. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 2025-07-25 (UTC)"],[[["\u003cp\u003e\u003ccode\u003ePlaceActionLink\u003c/code\u003e resource represents a link associated with a Google Business Profile location, allowing customers to take actions like booking appointments or ordering food.\u003c/p\u003e\n"],["\u003cp\u003eLinks are categorized by \u003ccode\u003eProviderType\u003c/code\u003e (merchant, aggregator) and \u003ccode\u003ePlaceActionType\u003c/code\u003e (appointment, order, etc.) and can be managed through create, delete, get, list, and patch methods.\u003c/p\u003e\n"],["\u003cp\u003eEach link has attributes like \u003ccode\u003euri\u003c/code\u003e, \u003ccode\u003eisEditable\u003c/code\u003e, and \u003ccode\u003eisPreferred\u003c/code\u003e, providing control and information about the link's behavior and status.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePlaceActionLink\u003c/code\u003e includes timestamps for creation and updates (\u003ccode\u003ecreateTime\u003c/code\u003e, \u003ccode\u003eupdateTime\u003c/code\u003e) enabling tracking of link history.\u003c/p\u003e\n"]]],[],null,["# REST Resource: locations.placeActionLinks\n\n- [Resource: PlaceActionLink](#PlaceActionLink)\n - [JSON representation](#PlaceActionLink.SCHEMA_REPRESENTATION)\n- [ProviderType](#ProviderType)\n- [PlaceActionType](#PlaceActionType)\n- [Methods](#METHODS_SUMMARY)\n\nResource: PlaceActionLink\n-------------------------\n\nRepresents a place action link and its attributes.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"providerType\": enum (/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#ProviderType), \"isEditable\": boolean, \"uri\": string, \"placeActionType\": enum (/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionType), \"isPreferred\": boolean, \"createTime\": string, \"updateTime\": string } ``` |\n\n| Fields ||\n|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Optional. The resource name, in the format `locations/{locationId}/placeActionLinks/{place_action_link_id}`. The name field will only be considered in placeActionLinks.patch and placeActionLinks.delete requests for updating and deleting links respectively. However, it will be ignored in placeActionLinks.create request, where `place_action_link_id` will be assigned by the server on successful creation of a new link and returned as part of the response. |\n| `providerType` | `enum (`[ProviderType](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#ProviderType)`)` Output only. Specifies the provider type. |\n| `isEditable` | `boolean` Output only. Indicates whether this link can be edited by the client. |\n| `uri` | `string` Required. The link uri. The same uri can be reused for different action types across different locations. However, only one place action link is allowed for each unique combination of (uri, place action type, location). |\n| `placeActionType` | `enum (`[PlaceActionType](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionType)`)` Required. The type of place action that can be performed using this link. |\n| `isPreferred` | `boolean` Optional. Whether this link is preferred by the merchant. Only one link can be marked as preferred per place action type at a location. If a future request marks a different link as preferred for the same place action type, then the current preferred link (if any exists) will lose its preference. |\n| `createTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Output only. The time when the place action link was created. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n| `updateTime` | `string (`[Timestamp](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp)` format)` Output only. The time when the place action link was last modified. A timestamp in RFC3339 UTC \"Zulu\" format, with nanosecond resolution and up to nine fractional digits. Examples: `\"2014-10-02T15:01:23Z\"` and `\"2014-10-02T15:01:23.045123456Z\"`. |\n\nProviderType\n------------\n\nThe type of the link provider, can only be read.\n\n| Enums ||\n|-----------------------------|-------------------------------------------------------------------------|\n| `PROVIDER_TYPE_UNSPECIFIED` | Not specified. |\n| `MERCHANT` | A 1P provider such as a merchant, or an agency on behalf of a merchant. |\n| `AGGREGATOR_3P` | A 3P aggregator, such as a `Reserve with Google` partner. |\n\nPlaceActionType\n---------------\n\nThe type of place action that can be performed using the link.\n\n| Enums ||\n|---------------------------------|------------------------------------------------------------------|\n| `PLACE_ACTION_TYPE_UNSPECIFIED` | Not specified. |\n| `APPOINTMENT` | The action type is booking an appointment. |\n| `ONLINE_APPOINTMENT` | The action type is booking an online appointment. |\n| `DINING_RESERVATION` | The action type is making a dining reservation. |\n| `FOOD_ORDERING` | The action type is ordering food for delivery and/or takeout. |\n| `FOOD_DELIVERY` | The action type is ordering food for delivery. |\n| `FOOD_TAKEOUT` | The action type is ordering food for takeout. |\n| `SHOP_ONLINE` | The action type is shopping, that can be delivery and/or pickup. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|\n| ### [create](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/create) | Creates a place action link associated with the specified location, and returns it. |\n| ### [delete](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/delete) | Deletes a place action link from the specified location. |\n| ### [get](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/get) | Gets the specified place action link. |\n| ### [list](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/list) | Lists the place action links for the specified location. |\n| ### [patch](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/patch) | Updates the specified place action link and returns it. |"]]