Adwords API Getting AuthorizationError.SERVICE_ACCESS_DENIED on Python Library

353 views
Skip to first unread message

broopc...@datalicious.com

unread,
Aug 1, 2018, 6:52:23 AM8/1/18
to AdWords API and Google Ads API Forum
cd googleads-python-lib/examples/adwords/v201806/basic_operations/                                                         
python get_campaigns.py

No handlers could be found for logger "googleads.soap"
Traceback (most recent call last):
  File "get_campaigns.py", line 68, in <module>
    main(adwords_client)
  File "get_campaigns.py", line 51, in main
    page = campaign_service.get(selector)
  File "/Library/Python/2.7/lib/python/site-packages/googleads/common.py", line 1385, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [AuthorizationError.SERVICE_ACCESS_DENIED @ ]


peey rity

unread,
Aug 1, 2018, 7:10:39 AM8/1/18
to AdWords API and Google Ads API Forum
oh :((
what does thi mean?

Bharani Cherukuri (AdWords API Team)

unread,
Aug 1, 2018, 12:59:05 PM8/1/18
to AdWords API and Google Ads API Forum
Hello Bony, 

The SERVICE_ACCESS_DENIED error is usually seen when the developer doesn't have permission to access the service. Could you share the complete API SOAP request and response logs without redacting so I can take a closer look? Please check this guide on how to enable logging for Python client library. You can reply back via Reply privately to author option. 

Thanks,
Bharani, AdWords API Team

Bharani Cherukuri (AdWords API Team)

unread,
Aug 3, 2018, 11:38:32 AM8/3/18
to AdWords API and Google Ads API Forum
Hello Bony, 

Thank you for sharing the details privately. I was able to look up the MCC account and it looks like the developer token associated is approved for Mobile App Conversions and Remarketing API. In order to make API service calls, you will need to have a token approved for AdWords API. To apply for a new token or transfer the existing token, you can reach out to the API Compliance Team using this form so they can take a look and assist you further. 

Regards,
Bharani, AdWords API Team
Reply all
Reply to author
Forward
Message has been deleted
0 new messages