Show / Hide Table of Contents

Class DataResource.GaResource

The "ga" collection of methods.

Inheritance
System.Object
DataResource.GaResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class GaResource

Constructors

GaResource(IClientService)

Constructs a new resource.

Declaration
public GaResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.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
System.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.

System.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.

System.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.

System.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
In This Article
Back to top