Google Business Performance API memiliki metode API
BARU yang memungkinkan pengambilan beberapa `DailyMetrics` dalam satu permintaan API.
Tinjau
jadwal penghentian dan petunjuk untuk bermigrasi dari metode API reportInsights v4 ke Google Business Profile Performance API.
Method: accounts.locations.updateFoodMenus
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eUpdates the food menus for a specific Google My Business location if the location is eligible to have a food menu.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ePATCH\u003c/code\u003e HTTP method and requires the \u003ccode\u003efoodMenus.name\u003c/code\u003e path parameter to identify the location's food menu.\u003c/p\u003e\n"],["\u003cp\u003eAllows for partial updates using the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter to specify which fields should be changed.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either the \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This describes updating a location's food menus via a PATCH request to `https://mybusiness.googleapis.com/v4/{foodMenus.name=accounts/*/locations/*/foodMenus}`. The `foodMenus.name` path parameter is required to identify the location. An optional `updateMask` query parameter specifies fields to update, defaulting to a full update. The request and response bodies utilize the `FoodMenus` resource. Authorization requires either the `plus.business.manage` or `business.manage` OAuth scope. The update is conditional based on `location.location_state.can_have_food_menu`.\n"],null,["# Method: accounts.locations.updateFoodMenus\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- [Authorization Scopes](#body.aspect)\n\nUpdates the food menus of a specific location. Only call this if location.location_state.can_have_food_menu is true.\n\n### HTTP request\n\n`PATCH https://mybusiness.googleapis.com/v4/{foodMenus.name=accounts/*/locations/*/foodMenus}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| `foodMenus.name` | `string` Required. Google identifier for this location in the form: `accounts/{accountId}/locations/{locationId}/foodMenus` |\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` Optional. The specific fields to update. If no mask is specified, then this is treated as a full update and all fields are set to the values passed in, which may include unsetting empty fields in the request. Repeated field items can not be individually updated. Note: \"name\" of FoodMenus is the resource identifier which is not updatable. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [FoodMenus](/my-business/reference/rest/v4/FoodMenus).\n\n### Response body\n\nIf successful, the response body contains an instance of [FoodMenus](/my-business/reference/rest/v4/FoodMenus).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/plus.business.manage`\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)."]]