Class DataResource.GaResource
The "ga" collection of methods.
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class DataResource.GaResource
Constructors
GaResource(IClientService)
Constructs a new resource.
Declaration
public GaResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string, string, string, string)
Returns Analytics data for a view (profile).
Declaration
public virtual DataResource.GaResource.GetRequest Get(string ids, string startDate, string endDate, string metrics)
Parameters
Type | Name | Description |
---|---|---|
string | ids | Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. |
string | startDate | Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. |
string | endDate | End date for fetching Analytics data. Request can should specify an end date formatted as YYYY-MM-DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is yesterday. |
string | metrics | A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified. |
Returns
Type | Description |
---|---|
DataResource.GaResource.GetRequest |