- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- MultiDailyMetricTimeSeries
- DailyMetricTimeSeries
Returns the values for each date from a given time range and optionally the sub entity type, where applicable, that are associated with the specific daily metrics.
Example request: GET
https://businessprofileperformance.googleapis.com/v1/locations/12345:fetchMultiDailyMetricsTimeSeries?dailyMetrics=WEBSITE_CLICKS&dailyMetrics=CALL_CLICKS&dailyRange.start_date.year=2022&dailyRange.start_date.month=1&dailyRange.start_date.day=1&dailyRange.end_date.year=2022&dailyRange.end_date.month=3&dailyRange.end_date.day=31
HTTP request
GET https://businessprofileperformance.googleapis.com/v1/{location=locations/*}:fetchMultiDailyMetricsTimeSeries
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
location |
Required. The location for which the time series should be fetched. Format: locations/{locationId} where locationId is an unobfuscated listing id. |
Query parameters
Parameters | |
---|---|
dailyMetrics[] |
Required. The metrics to retrieve time series for. |
dailyRange |
Required. The timerange for which the time series will be fetched. |
Request body
The request body must be empty.
Response body
Represents the response for locations.fetchMultiDailyMetricsTimeSeries.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"multiDailyMetricTimeSeries": [
{
object ( |
Fields | |
---|---|
multiDailyMetricTimeSeries[] |
DailyMetrics and their corresponding time series. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/business.manage
For more information, see the OAuth 2.0 Overview.
MultiDailyMetricTimeSeries
Represents a list of tuples of DailyMetric-DailySubEntityType-TimeSeries.
JSON representation |
---|
{
"dailyMetricTimeSeries": [
{
object ( |
Fields | |
---|---|
dailyMetricTimeSeries[] |
List of DailyMetric-TimeSeries pairs. |
DailyMetricTimeSeries
Represents a single datapoint, where each datapoint is a DailyMetric-DailySubEntityType-TimeSeries tuple.
JSON representation |
---|
{ "dailyMetric": enum ( |
Fields | |
---|---|
dailyMetric |
The DailyMetric that the TimeSeries represents. |
dailySubEntityType |
The DailySubEntityType that the TimeSeries represents. Will not be present when breakdown does not exist. |
timeSeries |
List of datapoints where each datapoint is a date-value pair. |