From 9ea06742687ad2b969494f60f10cc9329a3d8f98 Mon Sep 17 00:00:00 2001 From: Adrian Patzi Date: Wed, 13 Jan 2021 11:59:02 +0100 Subject: [PATCH] updating build from 'searchconsole' to 'webmasters' Google announced it wouldn't support the searchconsole API after 31.12.2020. Changing the build allows to use the example --- samples/searchconsole/search_analytics_api_sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/searchconsole/search_analytics_api_sample.py b/samples/searchconsole/search_analytics_api_sample.py index c577ef6cf52..b166b6eeb38 100644 --- a/samples/searchconsole/search_analytics_api_sample.py +++ b/samples/searchconsole/search_analytics_api_sample.py @@ -55,7 +55,7 @@ def main(argv): service, flags = sample_tools.init( - argv, 'searchconsole', 'v1', __doc__, __file__, parents=[argparser], + argv, 'webmasters', 'v3', __doc__, __file__, parents=[argparser], scope='https://www.googleapis.com/auth/webmasters.readonly') # First run a query to learn which dates we have data for. You should always