AuthorizationError.SERVICE_ACCESS_DENIED on python example

21 views
Skip to first unread message

tak...@mercari.com

unread,
Dec 18, 2018, 12:06:12 PM12/18/18
to AdWords API and Google Ads API Forum
Hi group members,

I'm trying first-api-call with production environment but I got an error AuthorizationError.SERVICE_ACCESS_DENIED .
I read the existing discussions in this group, and checked that my account's access level is Standard or Admin. But it doesn't still work.

Could you help to solve this issue?

```
☁  googleads-python-lib [master] python examples/adwords/v201809/account_management/get_account_hierarchy.py
No handlers could be found for logger "googleads.soap"
Traceback (most recent call last):
  File "examples/adwords/v201809/account_management/get_account_hierarchy.py", line 104, in <module>
    main(adwords_client)
  File "examples/adwords/v201809/account_management/get_account_hierarchy.py", line 70, in main
    page = managed_customer_service.get(selector)
  File "/Users/takakoohshima/.pyenv/versions/anaconda3-4.3.1/lib/python2.7/site-packages/googleads/common.py", line 1396, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [AuthorizationError.SERVICE_ACCESS_DENIED @ ]
```

Thanks,
Takako

Peter Oliquino (AdWords API Team)

unread,
Dec 18, 2018, 1:27:47 PM12/18/18
to AdWords API and Google Ads API Forum
Hi Takako,

So I can better investigate the cause of this issue, could you provide to me the complete SOAP request and response logs? If you haven't enabled SOAP logging yet, you may refer to this guide on how you can enable it on your end. Once enabled, you may retry your request and replicate the error and send to me the SOAP logs. 

Additionaly, could you also provide to me the email address you used when you generated your OAuth2 credentials? You may reply to me using the Reply privately to author option.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages