A API
Google Business Performance tem um
NOVO método de API que permite buscar várias "DailyMetrics" em uma única solicitação de API.
Confira a
programação de descontinuação e instruções para migrar do método de API reportInsights v4 para a API Google Business Profile Performance.
Method: accounts.locations.getGoogleUpdated
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Recebe a versão atualizada pelo Google do local especificado. Retornará NOT_FOUND
se o local não existir.
Solicitação HTTP
GET https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:googleUpdated
O URL usa a sintaxe de transcodificação gRPC.
Parâmetros de caminho
Parâmetros |
name |
string
O nome do local a ser buscado.
|
Corpo da solicitação
O corpo da solicitação precisa estar vazio.
Corpo da resposta
Se bem-sucedido, o corpo da resposta incluirá dados com a estrutura a seguir:
Representa um local que foi modificado pelo Google.
Representação JSON |
{
"location": {
object (Location )
},
"diffMask": string
} |
Campos |
location |
object (Location )
A versão deste local atualizada pelo Google.
|
diffMask |
string (FieldMask format)
Campos que o Google atualizou. É uma lista separada por vírgulas de nomes de campos totalmente qualificados. Exemplo: "user.displayName,photo" .
|
Escopos de autorização
Requer um dos seguintes escopos do OAuth:
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
Para mais informações, consulte a Visão geral do OAuth 2.0.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-25 UTC.
[null,null,["Última atualização 2025-07-25 UTC."],[[["\u003cp\u003eRetrieves the Google-updated version of a specified location using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the location name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eReturns a JSON response containing the updated location data and a diff mask indicating the modified fields.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific OAuth scopes like \u003ccode\u003ehttps://www.googleapis.com/auth/plus.business.manage\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/business.manage\u003c/code\u003e.\u003c/p\u003e\n"]]],["This describes retrieving a Google-updated location using a `GET` request to a specific URL (`https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:googleUpdated`). The `name` path parameter identifies the location. The request body must be empty. A successful response contains a JSON object with the updated location data, including the `location` object and a `diffMask` string that specifies changed fields. Authorization requires either the `plus.business.manage` or `business.manage` OAuth scope.\n"],null,["# Method: accounts.locations.getGoogleUpdated\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 - [JSON representation](#body.GoogleUpdatedLocation.SCHEMA_REPRESENTATION)\n- [Authorization Scopes](#body.aspect)\n\nGets the Google-updated version of the specified location. Returns `NOT_FOUND` if the location does not exist.\n\n### HTTP request\n\n`GET https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}:googleUpdated`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------|\n| `name` | `string` The name of the location to fetch. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nRepresents a location that was modified by Google.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"location\": { object (/my-business/reference/rest/v4/accounts.locations#Location) }, \"diffMask\": string } ``` |\n\n| Fields ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `location` | `object (`[Location](/my-business/reference/rest/v4/accounts.locations#Location)`)` The Google-updated version of this location. |\n| `diffMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` The fields that Google updated. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\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)."]]