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.
BasicMetricsRequest
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Una richiesta di approfondimenti sulle metriche di base.
Rappresentazione JSON |
{
"metricRequests": [
{
object (MetricRequest )
}
],
"timeRange": {
object (TimeRange )
}
} |
Campi |
metricRequests[] |
object (MetricRequest )
Una raccolta di metriche per cui restituire valori per includere le opzioni di restituzione dei dati.
|
timeRange |
object (TimeRange )
L'intervallo per il quale raccogliere le metriche. L'intervallo massimo è 18 mesi dalla data della richiesta. In alcuni casi, i dati potrebbero non essere ancora disponibili per i giorni successivi alla data della richiesta. I dati mancanti verranno specificati nel campo metricValues della risposta.
|
MetricRequest
Una richiesta per restituire valori per una metrica e le opzioni per la restituzione di questi valori.
Campi |
metric |
enum (Metric )
La metrica richiesta.
|
options[] |
enum (MetricOption )
Come devono apparire i valori una volta restituiti.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eBasicMetricsRequest\u003c/code\u003e allows retrieval of basic metric insights for a specified time range, up to 18 months.\u003c/p\u003e\n"],["\u003cp\u003eThe request specifies desired metrics and data return options using \u003ccode\u003eMetricRequest\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eMetricRequest\u003c/code\u003e defines the specific metric and how the values should be presented in the response.\u003c/p\u003e\n"],["\u003cp\u003eData for days near the request date might be unavailable and is indicated within the \u003ccode\u003emetricValues\u003c/code\u003e field of the response.\u003c/p\u003e\n"]]],[],null,["# BasicMetricsRequest\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [MetricRequest](#MetricRequest)\n - [JSON representation](#MetricRequest.SCHEMA_REPRESENTATION)\n\nA request for basic metric insights.\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metricRequests\": [ { object (/my-business/reference/rest/v4/BasicMetricsRequest#MetricRequest) } ], \"timeRange\": { object (/my-business/reference/rest/v4/TimeRange) } } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `metricRequests[]` | `object (`[MetricRequest](/my-business/reference/rest/v4/BasicMetricsRequest#MetricRequest)`)` A collection of metrics to return values for including the options for how the data should be returned. |\n| `timeRange` | `object (`[TimeRange](/my-business/reference/rest/v4/TimeRange)`)` The range to gather metrics for. The maximum range is 18 months from the request date. In some cases, the data may still be missing for days close to the request date. Missing data will be specified in the `metricValues` in the response. |\n\nMetricRequest\n-------------\n\nA request to return values for one metric and the options for how those values should be returned.\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"metric\": enum (/my-business/reference/rest/v4/Metric), \"options\": [ enum (/my-business/reference/rest/v4/MetricOption) ] } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------|\n| `metric` | `enum (`[Metric](/my-business/reference/rest/v4/Metric)`)` The requested metric. |\n| `options[]` | `enum (`[MetricOption](/my-business/reference/rest/v4/MetricOption)`)` How the values should appear when returned. |"]]