Skip to content

Commit

Permalink
Added new example to the Search Console sample
Browse files Browse the repository at this point in the history
  • Loading branch information
haymigoogle committed Apr 5, 2016
1 parent c6425a0 commit 0eaa280
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions samples/searchconsole/search_analytics_api_sample.py
Expand Up @@ -87,6 +87,23 @@ def main(argv):
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Top Queries')

# Get top 11-20 mobile queries for the date range, sorted by click count, descending.
request = {
'startDate': flags.start_date,
'endDate': flags.end_date,
'dimensions': ['query'],
'dimensionFilterGroups': [{
'filters': [{
'dimension': 'device',
'expression': 'mobile'
}]
}],
'rowLimit': 10,
'startRow': 10
}
response = execute_request(service, flags.property_uri, request)
print_table(response, 'Top 11-20 Mobile Queries')

# Get top 10 pages for the date range, sorted by click count, descending.
request = {
'startDate': flags.start_date,
Expand Down

0 comments on commit 0eaa280

Please sign in to comment.