Hello,
   I am trying to run example get_campaigns.py script. I created an 
installed application on Google Developers Console and enabled Google Ads 
API for this app. After that I get client_id and client_secret for this app 
and using generate_refresh_token.py I generated refresh token using that 
client_id and client_secret credentials. My logged in email in Chrome is my 
business email and that mail is defined as manager on Google Ads Console. 
Here is my error code,

Error summary: {'faultMessage': "[AuthenticationError.OAUTH_TOKEN_INVALID @ 
; trigger:'<null>']", 'requestId': '0005b0fe74d55e6b0a37f502ce05732b', 
'serviceName': 'CampaignService', 'methodName': 'get', 'operations': '1', 
'responseTime': '49'}
Traceback (most recent call last):
  File "C:\Python38\lib\site-packages\googleads\common.py", line 991, in 
MakeSoapRequest
    return soap_service_method(
  File "C:\Python38\lib\site-packages\zeep\proxy.py", line 40, in __call__
    return self._proxy._binding.send(
  File "C:\Python38\lib\site-packages\zeep\wsdl\bindings\soap.py", line 
130, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Python38\lib\site-packages\zeep\wsdl\bindings\soap.py", line 
195, in process_reply
    return self.process_error(doc, operation)
  File "C:\Python38\lib\site-packages\zeep\wsdl\bindings\soap.py", line 
295, in process_error
    raise Fault(
zeep.exceptions.Fault: [AuthenticationError.OAUTH_TOKEN_INVALID @ ; 
trigger:'<null>']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\main.py", line 40, in <module>
    main(adwords_client)
  File ".\main.py", line 23, in main
    page = campaign_service.get(selector)
  File "C:\Python38\lib\site-packages\googleads\common.py", line 1003, in 
MakeSoapRequest
    raise googleads.errors.GoogleAdsServerFault(
googleads.errors.GoogleAdsServerFault: 
[AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:'<null>']

Thanks,
Egemen Sarımaden

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a44aa74c-2a1f-41d7-b8c4-f43a58976bd5n%40googlegroups.com.

Reply via email to