Hi,

I am struggling to connect to AdWords API, i followed this 
instruction: https://developers.google.com/adwords/api/docs/first-request?hl=en

I configured my googleads.yaml file with my developer token and o2auth 
client_id and client_secret.

I am trying to execute basically only this two lines:

from googleads.adwords import AdWordsClient

client = AdWordsClient.LoadFromStorage()

I am using python 3.4

And still getting this error: 

Traceback (most recent call last):

  File "./adwords.py", line 6, in <module>

    client = AdWordsClient.LoadFromStorage()

  File "/usr/local/lib/python3.4/site-packages/googleads/adwords.py", line 
188, in LoadFromStorage

    cls._OPTIONAL_INIT_VALUES))

  File "/usr/local/lib/python3.4/site-packages/googleads/adwords.py", line 
223, in __init__

    self.oauth2_client.Refresh()

  File "/usr/local/lib/python3.4/site-packages/googleads/oauth2.py", line 
165, in Refresh

    self.disable_ssl_certificate_validation)))

  File "/usr/local/lib/python3.4/site-packages/oauth2client/client.py", 
line 597, in refresh

    self._refresh(http.request)

  File "/usr/local/lib/python3.4/site-packages/oauth2client/client.py", 
line 768, in _refresh

    self._do_refresh_request(http_request)

  File "/usr/local/lib/python3.4/site-packages/oauth2client/client.py", 
line 833, in _do_refresh_request

    raise AccessTokenRefreshError(error_msg)

oauth2client.client.AccessTokenRefreshError: invalid_grant

I tried to google a solution but nothing helped me. Please if you find the 
problem, I'll be very grateful

Thank you.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0bb9a0e2-63a5-40da-a3fe-09d3d747bdf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to