Re: AuthenticationError.OAUTH_TOKEN_INVALID in get_campaigns.py

2020-10-07 Thread Egemen Sarımaden
Hi,
  I do not have *reply to author permission, *could you give me the 
permission?

On Tuesday, October 6, 2020 at 10:42:15 PM UTC+3 adsapiforumadvisor wrote:

> Hi Egemen,
>
> Thank you for reaching out. Please make sure that the email you are using 
> is a user of the account for generating the refreshToken. Please 
> re-generate the OAuth2 credentials and fill them in the configuration file. 
> If the issue persist, please share the complete request and response logs 
> along with the client customer id and the account you used to generate the 
> refreshToken and the configuration file via the *Reply privately to the 
> author* option for us to further investigate.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q25ZV3Z:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1a33b960-c1e1-43c0-ad83-06de506a3da4n%40googlegroups.com.


AuthenticationError.OAUTH_TOKEN_INVALID in get_campaigns.py

2020-10-06 Thread Egemen Sarımaden
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:'']", '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:'']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\main.py", line 40, in 
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:'']

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.