Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SearchAnalyticsQueryRequest

import type { SearchAnalyticsQueryRequest } from "https://googleapis.deno.dev/v1/searchconsole:v1.ts";
interface SearchAnalyticsQueryRequest {
aggregationType?:
| "AUTO"
| "BY_PROPERTY"
| "BY_PAGE"
| "BY_NEWS_SHOWCASE_PANEL";
dataState?: "DATA_STATE_UNSPECIFIED" | "FINAL" | "ALL";
dimensionFilterGroups?: ApiDimensionFilterGroup[];
dimensions?:
| "DATE"
| "QUERY"
| "PAGE"
| "COUNTRY"
| "DEVICE"
| "SEARCH_APPEARANCE"[];
endDate?: string;
rowLimit?: number;
searchType?:
| "WEB"
| "IMAGE"
| "VIDEO"
| "NEWS"
| "DISCOVER"
| "GOOGLE_NEWS";
startDate?: string;
startRow?: number;
type?:
| "WEB"
| "IMAGE"
| "VIDEO"
| "NEWS"
| "DISCOVER"
| "GOOGLE_NEWS";
}

§Properties

§
aggregationType?: "AUTO" | "BY_PROPERTY" | "BY_PAGE" | "BY_NEWS_SHOWCASE_PANEL"
[src]

[Optional; Default is "auto"] How data is aggregated. If aggregated by property, all data for the same property is aggregated; if aggregated by page, all data is aggregated by canonical URI. If you filter or group by page, choose AUTO; otherwise you can aggregate either by property or by page, depending on how you want your data calculated; see the help documentation to learn how data is calculated differently by site versus by page. Note: If you group or filter by page, you cannot aggregate by property. If you specify any value other than AUTO, the aggregation type in the result will match the requested type, or if you request an invalid type, you will get an error. The API will never change your aggregation type if the requested type is invalid.

§
dataState?: "DATA_STATE_UNSPECIFIED" | "FINAL" | "ALL"
[src]

The data state to be fetched, can be full or all, the latter including full and partial data.

§
dimensionFilterGroups?: ApiDimensionFilterGroup[]
[src]

[Optional] Zero or more filters to apply to the dimension grouping values; for example, 'query contains "buy"' to see only data where the query string contains the substring "buy" (not case-sensitive). You can filter by a dimension without grouping by it.

§
dimensions?: "DATE" | "QUERY" | "PAGE" | "COUNTRY" | "DEVICE" | "SEARCH_APPEARANCE"[]
[src]

[Optional] Zero or more dimensions to group results by. Dimensions are the group-by values in the Search Analytics page. Dimensions are combined to create a unique row key for each row. Results are grouped in the order that you supply these dimensions.

§
endDate?: string
[src]

[Required] End date of the requested date range, in YYYY-MM-DD format, in PST (UTC - 8:00). Must be greater than or equal to the start date. This value is included in the range.

§
rowLimit?: number
[src]

[Optional; Default is 1000] The maximum number of rows to return. Must be a number from 1 to 25,000 (inclusive).

§
searchType?: "WEB" | "IMAGE" | "VIDEO" | "NEWS" | "DISCOVER" | "GOOGLE_NEWS"
[src]

[Optional; Default is "web"] The search type to filter for.

§
startDate?: string
[src]

[Required] Start date of the requested date range, in YYYY-MM-DD format, in PST time (UTC - 8:00). Must be less than or equal to the end date. This value is included in the range.

§
startRow?: number
[src]

[Optional; Default is 0] Zero-based index of the first row in the response. Must be a non-negative number.

§
type?: "WEB" | "IMAGE" | "VIDEO" | "NEWS" | "DISCOVER" | "GOOGLE_NEWS"
[src]

Optional. [Optional; Default is "web"] Type of report: search type, or either Discover or Gnews.