L'API Google Business Performance ha un metodo NOVITÀ che consente di recuperare più `dailyMetrics` in un'unica richiesta API. Consulta il calendario del ritiro e le istruzioni per eseguire la migrazione dal metodo API ReportInsights della versione 4 all'API Performance di Google Profilo.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
L'API GoogleLocations ti consente di sapere in anticipo se una località è stata rivendicata in Profilo dell'attività. In questo modo, se la stazione di ricarica è stata rivendicata, puoi richiedere immediatamente l'accesso. Inoltre, se gestisci account sottoposti a verifica collettiva, puoi selezionare in modo più accurato le potenziali corrispondenze in anticipo ed evitare la creazione di località duplicate.
L'endpoint dell'API restituisce un URL che indica se una sede è già stata rivendicata. Se è stato rivendicato, lo stesso URL ti consente di avviare la procedura di richiesta di accesso.
L'immagine seguente fornisce una panoramica della procedura per ottenere la proprietà di una stazione di ricarica.
Figura 1. Diagramma di flusso della proprietà della sede del profilo dell'attività
I passaggi che seguono ti consentono di utilizzare l'API GoogleLocations:
Raccogliere i dati sulla posizione dal commerciante.
Chiama l'endpoint
googleLocations.search. Fornisci i dati sulla posizione nel corpo della chiamata. In alternativa, puoi fornirla
in una stringa di query, in modo simile a quanto farebbe un utente nella Ricerca o in Maps. Ad esempio,
"Starbucks 5th ave NYC".
L'API restituisce un elenco di località potenzialmente corrispondenti e informazioni su ciascuna località, come locationName e indirizzo.
Seleziona la località corrispondente alla tua posizione. Se non ci sono corrispondenze, chiama
accounts.locations.create
e vai al passaggio 5.
In base allo stato di requestAdminRightsUrl nella risposta, esegui le seguenti
azioni:
Se requestAdminRightsUrl esiste, la scheda è di proprietà di un altro utente.
Invita il commerciante a visitare l'URL per avviare una richiesta di accesso e proprietà della sede esistente in Profilo dell'attività.
Se requestAdminRightsUrl non esiste, chiama
accounts.locations.create
e crea una nuova scheda che verrà verificata in un secondo momento.
Se hai creato nuove schede nell'ambito di questa procedura, puoi utilizzare le API di verifica per iniziare la verifica delle schede. Per saperne di più, consulta
Gestire la verifica.
[null,null,["Ultimo aggiornamento 2025-08-29 UTC."],[[["\u003cp\u003eThe GoogleLocations API helps determine if a Business Profile location has been claimed, allowing for access requests or creation of new listings.\u003c/p\u003e\n"],["\u003cp\u003eUse the API to search for existing locations, initiate access requests if claimed, or create new listings if unclaimed.\u003c/p\u003e\n"],["\u003cp\u003eIf a new listing is created, leverage verification APIs to complete the setup process.\u003c/p\u003e\n"],["\u003cp\u003eThis API is intended for managing locations with existing business relationships and should not be used for lead generation or competitive analysis.\u003c/p\u003e\n"]]],["The GoogleLocations API determines if a location is claimed in Business Profile. Using the `googleLocations.search` endpoint, provide location data to find matching locations. If a match exists, check `requestAdminRightsUrl`; if present, initiate an access request via the provided URL. If not, or if no match is found, create a new location with `accounts.locations.create`. New listings require verification through the verification APIs. This API is for merchants with business relationships, not lead generation.\n"],null,["# GoogleLocations\n\nThe GoogleLocations API allows you to see in advance whether a location has been\nclaimed in Business Profile. This way, if the location has been claimed, you can immediately\nrequest access to the location. Also, if you manage bulk-verified accounts, you can more accurately\nselect potential matches in advance and avoid the creation of duplicate locations.\n\nThe API endpoint returns a URL that indicates if a location has already been claimed. If it has\nbeen claimed, the same URL allows you to start the access request process.\n\nThe following image provides an overview of the process to gain ownership of a location.\n**Figure 1.** Swimlane diagram of Business Profile location ownership\n\nThe following steps allow you to use the `GoogleLocations` API:\n\n1. Collect location data from the merchant.\n2. Call the\n [`googleLocations.search`](/my-business/reference/businessinformation/rest/v1/googleLocations)\n endpoint. Provide the location data within the body of the call. Alternatively, you can provide\n it in a query string, similar to what a user would enter in Search or Maps. For example,\n \"Starbucks 5th ave NYC.\"\n\n The API returns a list of potentially matching locations and information about each location,\n such as `locationName` and address.\n3. Select the location that matches your location. If there are no matches, call [`accounts.locations.create`](/my-business/reference/businessinformation/rest/v1/accounts.locations/create), and skip to step 5.\n4. Based on the state of `requestAdminRightsUrl` in the response, take the following\n actions:\n\n 1. If `requestAdminRightsUrl` exists, another user has ownership of the listing. Direct the merchant to the URL to start a request for access and ownership of the existing location in Business Profile.\n 2. If `requestAdminRightsUrl` doesn't exist, call [`accounts.locations.create`](/my-business/reference/businessinformation/rest/v1/accounts.locations/create) and create a new listing that will be verified later.\n5. If you created new listings as part of this process, you can utilize the verification APIs to begin verification of the listings. For more information, see [Manage verification](/my-business/content/manage-verification).\n\n| **Note:** The GoogleLocations API is intended to find the status of locations for which your company has a business relationship with the merchant. The use of the endpoints for the purposes of lead generation or competitive analysis is against [Google's policies](/my-business/content/policies#prohibited_practices) and will result in revocation of API access."]]