UpendraSingh / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

error 400 when calling ga:1dayUsers in Core Reporting API #887

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Core Reporting API

Issue summary:
I tried to retrive ga:1dayUser for a one month period using the Query Explorer
https://ga-dev-tools.appspot.com/query-explorer/
I only used the ga:1dayUser metrics and the other required fields but I get the 
error 400 "Selected dimensions and metrics cannot be queried together."

You can reproduce the erro by yourself using the explore query

Steps to reproduce issue:
1. select an analytics view
2. select a valid period of time
3. enter the  ga:1dayUser metric
4. click on run query button

Expected output:
the day by day list of users

Actual results:
error 400 "Selected dimensions and metrics cannot be queried together."

Thanks for the support
Daniele

Original issue reported on code.google.com by pennati....@gmail.com on 23 Feb 2016 at 4:27

GoogleCodeExporter commented 8 years ago
You did not specify what dimensions you queried:

https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=d
etail&group=user&jump=ga_1dayusers

At least one of ga:nthDay, ga:date, or ga:day must be specified as a dimension 
in order to query this metric. For the given date the returned value will be 
the total unique users for the 1 day period ending on the given date.

Original comment by mcoh...@google.com on 23 Feb 2016 at 4:37