My Business Place Actions API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
My Business Place Actions API 提供了一个接口,用于在 Google 上管理某个营业地点的地点操作链接。
注意:如果您在启用该 API 后的配额为 0,请申请 GBP API 访问权限。
服务:mybusinessplaceactions.googleapis.com
要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用程序需要使用自己的库来调用此服务,请在发出 API 请求时使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://mybusinessplaceactions.googleapis.com
方法 |
create |
POST /v1/{parent=locations/*}/placeActionLinks
创建与指定营业地点关联的地点操作链接,并将其返回。 |
delete |
DELETE /v1/{name=locations/*/placeActionLinks/*}
从指定位置删除地点操作链接。 |
get |
GET /v1/{name=locations/*/placeActionLinks/*}
获取指定的地点操作链接。 |
list |
GET /v1/{parent=locations/*}/placeActionLinks
列出指定营业地点的地点操作链接。 |
patch |
PATCH /v1/{placeActionLink.name=locations/*/placeActionLinks/*}
更新指定的地点操作链接并将其返回。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe My Business Place Actions API allows management of place action links for Google locations.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use Google-provided client libraries or the service endpoint for API requests.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers methods to create, delete, get, list, and update place action links.\u003c/p\u003e\n"],["\u003cp\u003ePlace action type metadata can be accessed to see available options.\u003c/p\u003e\n"],["\u003cp\u003eUsers with a quota of 0 may need to request access to the GBP API.\u003c/p\u003e\n"]]],[],null,["# My Business Place Actions API\n\nThe My Business Place Actions API provides an interface for managing place action links of a location on Google. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.locations.placeActionLinks](#v1.locations.placeActionLinks)\n- [REST Resource: v1.placeActionTypeMetadata](#v1.placeActionTypeMetadata)\n\nService: mybusinessplaceactions.googleapis.com\n----------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://mybusinessplaceactions.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://mybusinessplaceactions.googleapis.com`\n\nREST Resource: [v1.locations.placeActionLinks](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks)\n----------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/create) | `POST /v1/{parent=locations/*}/placeActionLinks` Creates a place action link associated with the specified location, and returns it. |\n| [delete](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/delete) | `DELETE /v1/{name=locations/*/placeActionLinks/*}` Deletes a place action link from the specified location. |\n| [get](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/get) | `GET /v1/{name=locations/*/placeActionLinks/*}` Gets the specified place action link. |\n| [list](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/list) | `GET /v1/{parent=locations/*}/placeActionLinks` Lists the place action links for the specified location. |\n| [patch](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks/patch) | `PATCH /v1/{placeActionLink.name=locations/*/placeActionLinks/*}` Updates the specified place action link and returns it. |\n\nREST Resource: [v1.placeActionTypeMetadata](/my-business/reference/placeactions/rest/v1/placeActionTypeMetadata)\n----------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|\n| [list](/my-business/reference/placeactions/rest/v1/placeActionTypeMetadata/list) | `GET /v1/placeActionTypeMetadata` Returns the list of available place action types for a location or country. |"]]