Google Business Performance API has a
NEW API method that allows fetching multiple `DailyMetrics` in a single API request. Review the
deprecation schedule and instructions to migrate over from v4 reportInsights API method to Google Business Profile Performance API.
BasicMetricsRequest
Stay organized with collections
Save and categorize content based on your preferences.
A request for basic metric insights.
Fields |
metricRequests[] |
object (MetricRequest )
A collection of metrics to return values for including the options for how the data should be returned.
|
timeRange |
object (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.
|
MetricRequest
A request to return values for one metric and the options for how those values should be returned.
Fields |
metric |
enum (Metric )
The requested metric.
|
options[] |
enum (MetricOption )
How the values should appear when returned.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-16 UTC."],[[["`BasicMetricsRequest` allows retrieval of basic metric insights for a specified time range, up to 18 months."],["The request specifies desired metrics and data return options using `MetricRequest` objects."],["Each `MetricRequest` defines the specific metric and how the values should be presented in the response."],["Data for days near the request date might be unavailable and is indicated within the `metricValues` field of the response."]]],[]]