"PERMISSION_DENIED" trying to get ads performance report

28 views
Skip to first unread message

Riyan Shah

unread,
Jul 9, 2024, 1:14:14 PMJul 9
to Google Ads API and AdWords API Forum

Hello,

I would like to get the daily ads performance report from my ads account which is linked to the manager account through SearchGoogleAdsStreamRequest with a query.

I have created developer token with basic access and also generated OAuth 2.0 login with my account which has admin access to manager as well as ads account and placed all the credentials on the .yaml file along with the login-customer-id as manager account id.

But even after managing all the access i am facing an error saying “FaultMessage: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header.

Although the manager’s customer id is in the file requested by the error message I am unable to solve the issue.


Kindly help me with the exact solutions or the steps to overcome this issue. 

Thanks,

Google Ads API Forum Advisor

unread,
Jul 9, 2024, 6:31:52 PMJul 9
to riyanp...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I could see that you are encountering a USER_PERMISSION_DENIED error, it means the user doesn't have permission to access the customer. According to the documentation, if you're accessing the customer, please specify the login-customer-id as the manager account ID without hyphens (-).

To analyze your issue further could you please provide us with the below details. If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.


 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJnz0:ref" (ADR-00245662)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Reply all
Reply to author
Forward
0 new messages