My Business Place Actions API
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
API Hành động tại địa điểm doanh nghiệp của tôi cung cấp giao diện để quản lý các đường liên kết đến hành động liên quan đến địa điểm của một địa điểm trên Google.
Lưu ý – Nếu bạn có hạn mức là 0 sau khi bật API, vui lòng yêu cầu quyền truy cập vào API GBP.
Dịch vụ: mybusinessplaceactions.googleapis.com
Để gọi dịch vụ này, bạn nên sử dụng thư viện ứng dụng do Google cung cấp. Nếu ứng dụng của bạn cần sử dụng thư viện của riêng bạn để gọi dịch vụ này, hãy sử dụng thông tin sau đây khi đưa ra yêu cầu API.
Tài liệu khám phá
Tài liệu khám phá là một thông số kỹ thuật mà máy đọc được để mô tả và sử dụng các API REST. API này được dùng để xây dựng thư viện ứng dụng, trình bổ trợ IDE và các công cụ khác tương tác với các API của Google. Một dịch vụ có thể cung cấp nhiều tài liệu khám phá. Dịch vụ này cung cấp tài liệu khám phá sau đây:
Điểm cuối dịch vụ
Điểm cuối dịch vụ là một URL cơ sở chỉ định địa chỉ mạng của dịch vụ API. Một dịch vụ có thể có nhiều điểm cuối dịch vụ. Dịch vụ này có điểm cuối của dịch vụ sau đây và tất cả các URI bên dưới đều liên quan đến điểm cuối của dịch vụ này:
https://mybusinessplaceactions.googleapis.com
Phương thức |
create |
POST /v1/{parent=locations/*}/placeActionLinks
Tạo đường liên kết đến hành động liên quan đến địa điểm được liên kết với vị trí đã chỉ định rồi trả về vị trí đó. |
delete |
DELETE /v1/{name=locations/*/placeActionLinks/*}
Xoá một đường liên kết đến hành động liên quan đến địa điểm khỏi vị trí cụ thể. |
get |
GET /v1/{name=locations/*/placeActionLinks/*}
Nhận đường liên kết đã chỉ định cho hành động liên quan đến địa điểm. |
list |
GET /v1/{parent=locations/*}/placeActionLinks
Liệt kê các đường liên kết đến hành động liên quan đến địa điểm cho vị trí cụ thể. |
patch |
PATCH /v1/{placeActionLink.name=locations/*/placeActionLinks/*}
Cập nhật đường liên kết đến hành động liên quan đến địa điểm đã chỉ định và trả về đường liên kết đó. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\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. |"]]