Issue 347 in google-api-python-client: 403 error when try to query searchanalytics on my site

9 views
Skip to first unread message

google-api-p...@googlecode.com

unread,
Jul 29, 2015, 4:21:20 AM7/29/15
to google-api-p...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 347 by seozeo....@gmail.com: 403 error when try to query
searchanalytics on my site
https://code.google.com/p/google-api-python-client/issues/detail?id=347

[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1. Authorize via oAuth2
2. Tried to query: ```
x =
gapi.webmasters_service.searchanalytics().query(body={"startDate": "2014-01-01", "endDate": "2014-01-01"},
siteUrl="http://seozeo.com.tr").execute()
```

What is the expected output? What do you see instead?

Gets 403 error: ```
HttpError: <HttpError 403 when requesting
https://www.googleapis.com/webmasters/v3/sites/http%3A%2F%2Fseozeo.com.tr/searchAnalytics/query?alt=json
returned "User does not have sufficient permission for
site 'http://seozeo.com.tr/'. See also:
https://support.google.com/webmasters/answer/2451999.">
```
But this is site I've created.

What version of the product are you using? On what operating system?

Ubuntu 14.04 x64, python 2.7, pip freeze:
cffi==1.1.2
cryptography==0.9.3
enum34==1.0.4
gdata==2.0.18
google-api-python-client==1.4.1
gspread==0.2.5
httplib2==0.9.1
idna==2.0
ipaddress==1.0.14
oauth2client==1.4.12
pyasn1==0.1.8
pyasn1-modules==0.0.6
pycparser==2.14
pyOpenSSL==0.15.1
rsa==3.1.4
simplejson==3.8.0
six==1.9.0
uritemplate==0.6


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages