AuthorizationError.SERVICE_ACCESS_DENIED | python | manager account + admin role + dev_token enabled

57 views
Skip to first unread message

pandata

unread,
Aug 17, 2018, 1:05:32 PM8/17/18
to AdWords API and Google Ads API Forum
Dear all,

I simply try to  download some reports or only show available report's attributes/metrics via the ReportDefinitionService.getReportFields in python3 using the googleads library.

The error occurs as GoogleAdsServerFault: [AuthorizationError.SERVICE_ACCESS_DENIED @ ]

I already checked:
  • access to *.yaml file with credentials in it (client_secret, client_id, refresh_token, developer_token)
  • account is a manager account (access to setup>API center)
  • I (the user) have an admin role
  • the account got a developer token with "Basic Access"
I searched within this forum and the problem seems to be apparent to a few persons but it has been solved privately.

I receive the error with my own code and also with code provided from the example webpage:

Could you please help? Thanks.

Teja Makani

unread,
Aug 17, 2018, 3:16:28 PM8/17/18
to AdWords API and Google Ads API Forum
Hello Therese,

The SERVICE_ACCESS_DENIED error occurs when a developer token which is approved for non-AdWords API service is used to make AdWords API calls. To troubleshoot further, could you please share the MCC account Id that holds the developer token being used to make the API call along wiht the email ID that is authenticating the call? You could use reply privately to author option while sharing. 

Regards,
Sai Teja, AdWords API Team.

Teja Makani

unread,
Aug 20, 2018, 1:51:16 PM8/20/18
to AdWords API and Google Ads API Forum
Hello Therese,

Looks like your token is approved for App Conversions & Re-marketing API. Since requests related to token is out of scope to my team, I would recommend you to contact the API compliance team via this form. Someone from the API compliance team will get back to you soon after submitting the form.


Regards,
Sai Teja, AdWords API Team.

Message has been deleted

Therese

unread,
Aug 23, 2018, 7:49:29 AM8/23/18
to AdWords API and Google Ads API Forum
Dear Sai Teja,

Thanks for your reply. 
We contacted the API compliance center and the support team but they sent me back to this forum with the note that technical issues are handled here. 

The issue seems to be a developer token that is approved for sevices we do not want to use.

So what can I do? 
Can somebody help, please?

Maybe somebody just change the status from 'Approval for App Conversion & Re-marketing' to a status that allows downloading reports (--> AccountPerformanceRepot)?

Please find attached Mails snippets from API compliance center and the support team.

Regards,
Therese
Screenshot from 2018-08-22 10-20-20.png
Screenshot from 2018-08-23 13-43-35.png

Teja Makani

unread,
Aug 23, 2018, 2:53:53 PM8/23/18
to AdWords API and Google Ads API Forum
Hello Therese,

My team can address the technical issues specific to AdWords API. However, the root cause of the failure here is due to usage of a developer token that was approved for App Conversions & Re-marketing API to make the AdWords API calls. To use a developer token and make AdWords API calls, you will need to have a token that is approved for the AdWords API usage specifically. In this case, you will need to request the AdWords API compliance team to enable your developer token to be used for AdWords API calls. If you are not able to share the same token between APIs, that team should be able to suggest some alternatives. developer token approvals and transfers are outside the expertise of my team. You can reach out to the API compliance team via this form.

Once you have a token approved for AdWords API, you will be able to make the AdWords API calls without any issues.


Regards,
Sai Teja, AdWords API Team.

Reply all
Reply to author
Forward
0 new messages