Show / Hide Table of Contents

Class SearchanalyticsResource.QueryRequest

Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.

Inheritance
System.Object
ClientServiceRequest
ClientServiceRequest<SearchAnalyticsQueryResponse>
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>
SearchanalyticsResource.QueryRequest
Implements
IClientServiceRequest<SearchAnalyticsQueryResponse>
IClientServiceRequest
Inherited Members
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.Xgafv
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.AccessToken
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.Alt
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.Callback
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.Fields
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.Key
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.OauthToken
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.PrettyPrint
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.QuotaUser
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.UploadType
SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>.UploadProtocol
ClientServiceRequest<SearchAnalyticsQueryResponse>.Execute()
ClientServiceRequest<SearchAnalyticsQueryResponse>.ExecuteAsStream()
ClientServiceRequest<SearchAnalyticsQueryResponse>.ExecuteAsync()
ClientServiceRequest<SearchAnalyticsQueryResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<SearchAnalyticsQueryResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<SearchAnalyticsQueryResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<SearchAnalyticsQueryResponse>.CreateRequest(Nullable<Boolean>)
ClientServiceRequest<SearchAnalyticsQueryResponse>.GenerateRequestUri()
ClientServiceRequest<SearchAnalyticsQueryResponse>.GetDefaultETagAction(String)
ClientServiceRequest<SearchAnalyticsQueryResponse>.ETagAction
ClientServiceRequest<SearchAnalyticsQueryResponse>.ModifyRequest
ClientServiceRequest<SearchAnalyticsQueryResponse>.RequestParameters
ClientServiceRequest<SearchAnalyticsQueryResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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.SearchConsole.v1
Assembly: Google.Apis.SearchConsole.v1.dll
Syntax
public class QueryRequest : SearchConsoleBaseServiceRequest<SearchAnalyticsQueryResponse>, IClientServiceRequest<SearchAnalyticsQueryResponse>, IClientServiceRequest

Constructors

QueryRequest(IClientService, SearchAnalyticsQueryRequest, String)

Constructs a new Query request.

Declaration
public QueryRequest(IClientService service, SearchAnalyticsQueryRequest body, string siteUrl)
Parameters
Type Name Description
IClientService service
SearchAnalyticsQueryRequest body
System.String siteUrl

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.SearchConsole.v1.Data.SearchAnalyticsQueryResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.SearchConsole.v1.Data.SearchAnalyticsQueryResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.SearchConsole.v1.Data.SearchAnalyticsQueryResponse>.RestPath

SiteUrl

The site's URL, including protocol. For example: http://www.example.com/.

Declaration
[RequestParameter("siteUrl", RequestParameterType.Path)]
public virtual string SiteUrl { get; }
Property Value
Type Description
System.String

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.SearchConsole.v1.Data.SearchAnalyticsQueryResponse>.GetBody()

InitParameters()

Initializes Query parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.SearchConsole.v1.SearchConsoleBaseServiceRequest<Google.Apis.SearchConsole.v1.Data.SearchAnalyticsQueryResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
Back to top