How to get list of list of accounts that not are not enabled or not detactivated

40 views
Skip to first unread message

Melissa Termin

unread,
Aug 12, 2025, 4:27:41 AMAug 12
to Google Ads API and AdWords API Forum
Is there a way to get list of accounts that are not enabled or deactivated by performing REST API request ?

Sending request to Google Ads: method: POST; url: https://googleads.googleapis.com/v19/customers/xxxx/googleAds:search; params: {'query': 'SELECT customer.status, customer_client.status, customer_client.descriptive_name, customer.resource_name, customer.id, customer_client.level, customer_client.manager, customer_client.resource_name, customer_client.test_account, customer_client.hidden, customer_client.client_customer, customer.test_account, customer.manager FROM customer_client'}; headers : {'Authorization': 'xxxxxx', 'Content-Type': 'application/json', 'developer-token': 'xxxxxx'}

This request is returning me this error mesasge;

 Error message: The customer account can't be accessed because it is not yet enabled or has been deactivated.. Error code: 403. Error status: PERMISSION_DENIED


Thanks

Google Ads API Forum Advisor

unread,
Aug 12, 2025, 7:13:59 AMAug 12
to adwor...@googlegroups.com
Hi,

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

From the provided information, you are encountering a USER_PERMISSION_DENIED authorization 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. Please check if you have the correct access level to the Google Ads account that you are accessing. Kindly note that could you confirm whether you have added your email ID used to generate the OAuth credentials is listed as having 'Admin' or 'Standard' access in your customer account. Kindly verify this by checking under your Google Ads account  > Admin > Access and Security > Users > The email ID has the necessary access level. I recommend referring to the help center article "Manage access to your Google Ads account" for more information. Also, please check if you have the correct access level to the Google Ads account that you are accessing. Also, could you please provide us with the below details.
  • Execute List Accessible Customers and provide us complete API request and response logs, you may also check this API documentation for more information.
  • The user email is used for generating the OAuth credentials i.e, refresh token.
  • please provide the complete, updated API logs (request and response logs with request-id and request header) generated at your end.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.

You can send the details via Reply privately to the author option, or direct private reply to this email.

 


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-08-12 11:13:18Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01syoPV:ref" (ADR-00329655)



Melissa Termin

unread,
Aug 12, 2025, 7:48:20 AMAug 12
to Google Ads API and AdWords API Forum
Hi,

Is there a specific REST API endpoint to fetch accounts that are not enabled or deactivated using Google Ads API ?

Reply all
Reply to author
Forward
0 new messages