Google Business Performance API 的
NEW API 方法可擷取單一 API 要求中的多個「DailyMetrics」。
請詳閱
淘汰時間表和從 v4 reportInsights API 方法遷移至 Google Business Profile Performance API 的操作說明。
Method: locations.placeActionLinks.create
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
建立與指定地點相關聯的地點動作連結,再傳回該連結。如果 parent
、placeActionLink.uri
和 placeActionLink.place_action_type
與先前的要求相同,系統會將要求視為重複。
HTTP 要求
POST https://mybusinessplaceactions.googleapis.com/v1/{parent=locations/*}/placeActionLinks
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。建立這個地點動作連結的位置資源名稱。locations/{locationId} .
|
要求主體
要求主體包含 PlaceActionLink
的例項。
回應主體
如果成功,回應主體會包含新建立的 PlaceActionLink
例項。
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/business.manage
詳情請參閱 OAuth 2.0 總覽。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eCreates a place action link for a specified location, returning the link if successful and considering requests with the same parent, URI, and place action type as duplicates.\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP POST request to \u003ccode\u003ehttps://mybusinessplaceactions.googleapis.com/v1/{parent=locations/*}/placeActionLinks\u003c/code\u003e with the location specified as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eRequires a request body containing a PlaceActionLink object and returns a PlaceActionLink object upon successful creation.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e scope for access.\u003c/p\u003e\n"]]],[],null,["# Method: locations.placeActionLinks.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nCreates a place action link associated with the specified location, and returns it. The request is considered duplicate if the `parent`, `placeActionLink.uri` and `placeActionLink.place_action_type` are the same as a previous request.\n\n### HTTP request\n\n`POST 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 resource name of the location where to create this place action link. `locations/{locationId}`. |\n\n### Request body\n\nThe request body contains an instance of [PlaceActionLink](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionLink).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [PlaceActionLink](/my-business/reference/placeactions/rest/v1/locations.placeActionLinks#PlaceActionLink).\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)."]]