Class: Google::Apis::SearchconsoleV1::SearchAnalyticsQueryRequest
- Inherits:
-
Object
- Object
- Google::Apis::SearchconsoleV1::SearchAnalyticsQueryRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchconsole_v1/classes.rb,
lib/google/apis/searchconsole_v1/representations.rb,
lib/google/apis/searchconsole_v1/representations.rb
Instance Attribute Summary collapse
-
#aggregation_type ⇒ String
[Optional; Default is \"auto\"] How data is aggregated.
-
#data_state ⇒ String
The data state to be fetched, can be full or all, the latter including full and partial data.
-
#dimension_filter_groups ⇒ Array<Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup>
[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).
-
#dimensions ⇒ Array<String>
[Optional] Zero or more dimensions to group results by.
-
#end_date ⇒ String
[Required] End date of the requested date range, in YYYY-MM-DD format, in PST ( UTC - 8:00).
-
#row_limit ⇒ Fixnum
[Optional; Default is 1000] The maximum number of rows to return.
-
#search_type ⇒ String
[Optional; Default is \"web\"] The search type to filter for.
-
#start_date ⇒ String
[Required] Start date of the requested date range, in YYYY-MM-DD format, in PST time (UTC - 8:00).
-
#start_row ⇒ Fixnum
[Optional; Default is 0] Zero-based index of the first row in the response.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchAnalyticsQueryRequest
constructor
A new instance of SearchAnalyticsQueryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchAnalyticsQueryRequest
Returns a new instance of SearchAnalyticsQueryRequest.
759 760 761 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 759 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aggregation_type ⇒ String
[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.
Corresponds to the JSON property aggregationType
698 699 700 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 698 def aggregation_type @aggregation_type end |
#data_state ⇒ String
The data state to be fetched, can be full or all, the latter including full
and partial data.
Corresponds to the JSON property dataState
704 705 706 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 704 def data_state @data_state end |
#dimension_filter_groups ⇒ Array<Google::Apis::SearchconsoleV1::ApiDimensionFilterGroup>
[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.
Corresponds to the JSON property dimensionFilterGroups
712 713 714 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 712 def dimension_filter_groups @dimension_filter_groups end |
#dimensions ⇒ Array<String>
[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.
Corresponds to the JSON property dimensions
720 721 722 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 720 def dimensions @dimensions end |
#end_date ⇒ String
[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.
Corresponds to the JSON property endDate
727 728 729 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 727 def end_date @end_date end |
#row_limit ⇒ Fixnum
[Optional; Default is 1000] The maximum number of rows to return. Must be a
number from 1 to 25,000 (inclusive).
Corresponds to the JSON property rowLimit
733 734 735 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 733 def row_limit @row_limit end |
#search_type ⇒ String
[Optional; Default is \"web\"] The search type to filter for.
Corresponds to the JSON property searchType
738 739 740 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 738 def search_type @search_type end |
#start_date ⇒ String
[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.
Corresponds to the JSON property startDate
745 746 747 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 745 def start_date @start_date end |
#start_row ⇒ Fixnum
[Optional; Default is 0] Zero-based index of the first row in the response.
Must be a non-negative number.
Corresponds to the JSON property startRow
751 752 753 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 751 def start_row @start_row end |
#type ⇒ String
Optional. [Optional; Default is \"web\"] Type of report: search type, or
either Discover or Gnews.
Corresponds to the JSON property type
757 758 759 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 757 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
764 765 766 767 768 769 770 771 772 773 774 775 |
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 764 def update!(**args) @aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type) @data_state = args[:data_state] if args.key?(:data_state) @dimension_filter_groups = args[:dimension_filter_groups] if args.key?(:dimension_filter_groups) @dimensions = args[:dimensions] if args.key?(:dimensions) @end_date = args[:end_date] if args.key?(:end_date) @row_limit = args[:row_limit] if args.key?(:row_limit) @search_type = args[:search_type] if args.key?(:search_type) @start_date = args[:start_date] if args.key?(:start_date) @start_row = args[:start_row] if args.key?(:start_row) @type = args[:type] if args.key?(:type) end |