8000 docs: Update Webmasters API sample (#1092) · kapilt/google-api-python-client@12831f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 12831f3

Browse files
nati-googleparthea
andauthored
docs: Update Webmasters API sample (googleapis#1092)
* docs: Update Webmasters API sample webmasters@v3 has been merged into searchconsole@v1, so sample should be updated accordingly. * docs: Update webmasters to searchconsole in method doc Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 5c9bab1 commit 12831f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/searchconsole/search_analytics_api_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
def main(argv):
5757
service, flags = sample_tools.init(
58-
argv, 'webmasters', 'v3', __doc__, __file__, parents=[argparser],
58+
argv, 'searchconsole', 'v1', __doc__, __file__, parents=[argparser],
5959
scope='https://www.googleapis.com/auth/webmasters.readonly')
6060

6161
# First run a query to learn which dates we have data for. You should always
@@ -157,7 +157,7 @@ def execute_request(service, property_uri, request):
157157
"""Executes a searchAnalytics.query request.
158158
159159
Args:
160-
service: The webmasters service to use when executing the query.
160+
service: The searchconsole service to use when executing the query.
161161
property_uri: The site or app URI to request data for.
162162
request: The request to be executed.
163163

0 commit comments

Comments
 (0)
0