Show / Hide Table of Contents

Class DataResource.GetRequest

Returns Analytics report data for a view (profile).

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<System.String>
AnalyticsBaseServiceRequest<System.String>
DataResource.GetRequest
Implements
IClientServiceRequest<System.String>
IClientServiceRequest
Inherited Members
AnalyticsBaseServiceRequest<String>.Alt
AnalyticsBaseServiceRequest<String>.Fields
AnalyticsBaseServiceRequest<String>.Key
AnalyticsBaseServiceRequest<String>.OauthToken
AnalyticsBaseServiceRequest<String>.PrettyPrint
AnalyticsBaseServiceRequest<String>.QuotaUser
AnalyticsBaseServiceRequest<String>.UserIp
ClientServiceRequest<String>.Execute()
ClientServiceRequest<String>.ExecuteAsStream()
ClientServiceRequest<String>.ExecuteAsync()
ClientServiceRequest<String>.ExecuteAsync(CancellationToken)
ClientServiceRequest<String>.ExecuteAsStreamAsync()
ClientServiceRequest<String>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<String>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<String>.GenerateRequestUri()
ClientServiceRequest<String>.GetBody()
ClientServiceRequest<String>.GetDefaultETagAction(String)
ClientServiceRequest<String>.ETagAction
ClientServiceRequest<String>.ModifyRequest
ClientServiceRequest<String>.RequestParameters
ClientServiceRequest<String>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.Finalize()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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
Google.Apis.Requests.ClientServiceRequest<System.String>.HttpMethod

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
Google.Apis.Requests.ClientServiceRequest<System.String>.MethodName

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
Google.Apis.Requests.ClientServiceRequest<System.String>.RestPath

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()
Overrides
Google.Apis.Analytics.v2_4.AnalyticsBaseServiceRequest<System.String>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top