Show / Hide Table of Contents

Class DataResource

The "data" collection of methods.

Inheritance
System.Object
DataResource
Namespace: Google.Apis.Analytics.v2_4
Assembly: Google.Apis.Analytics.v2_4.dll
Syntax
public class DataResource : object

Constructors

DataResource(IClientService)

Constructs a new resource.

Declaration
public DataResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(String, String, String, String)

Returns Analytics report data for a view (profile).

Declaration
public virtual DataResource.GetRequest Get(string ids, string startDate, string endDate, string metrics)
Parameters
Type Name Description
System.String ids

Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.

System.String startDate

Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.

System.String endDate

End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.

System.String metrics

A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric must be specified to retrieve a valid Analytics report.

Returns
Type Description
DataResource.GetRequest
Back to top