jcchouinard / GoogleSearchConsole-Tutorial

41 stars 28 forks source link

googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3 #4

Open nico502 opened 2 years ago

nico502 commented 2 years ago

Hello, Thank you very much for this script. I had some issue with the connection to the service : googleapiclient.errors.UnknownApiNameOrVersion: name: webmasters version: v3

I changed line 63 of oauth.py : webmasters_service = build('webmaster', 'v3', http=http) to : webmasters_service = build('searchconsole', 'v1', http=http) and it works now. Greetings

benbohmer commented 2 years ago

I created a pull request to get this updated.