query
public SearchConsole.Searchanalytics.Query query(String siteUrl,
SearchAnalyticsQueryRequest content)
throws IOException
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.
Create a request for the method "searchanalytics.query".
This request holds the parameters needed by the searchconsole server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
siteUrl
- The site's URL, including protocol. For example: `http://www.example.com/`.
content
- the SearchAnalyticsQueryRequest
- Returns:
- the request
- Throws:
IOException