Class DataResource.GetRequest
Returns Analytics report data for a view (profile).
Inheritance
Inherited Members
Namespace: Google.Apis.Analytics.v2_4
Assembly: Google.Apis.Analytics.v2_4.dll
Syntax
public class GetRequest : AnalyticsBaseServiceRequest<string>, IClientServiceRequest<string>, IClientServiceRequest
Constructors
GetRequest(IClientService, String, String, String, String)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string ids, string startDate, string endDate, string metrics)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | ids | |
| System.String | startDate | |
| System.String | endDate | |
| System.String | metrics |
Properties
Dimensions
A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
Declaration
public virtual string Dimensions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
EndDate
End date for fetching report data. All requests should specify an end date formatted as YYYY- MM-DD.
Declaration
public virtual string EndDate { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Filters
A comma-separated list of dimension or metric filters to be applied to the report data.
Declaration
public virtual string Filters { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Ids
Unique table ID for retrieving report data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID.
Declaration
public virtual string Ids { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
MaxResults
The maximum number of entries to include in this feed.
Declaration
public virtual Nullable<int> MaxResults { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
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.
Declaration
public virtual string Metrics { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Segment
An Analytics advanced segment to be applied to the report data.
Declaration
public virtual string Segment { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Sort
A comma-separated list of dimensions or metrics that determine the sort order for the report data.
Declaration
public virtual string Sort { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
StartDate
Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-DD.
Declaration
public virtual string StartDate { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
StartIndex
An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
Declaration
public virtual Nullable<int> StartIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()