CUSTOMER_NOT_ENABLED error in v10

135 views
Skip to first unread message

r10.m...@gmail.com

unread,
May 11, 2022, 9:19:43 AM5/11/22
to Google Ads API and AdWords API Forum
Hi Team, 

We are using v10 google ads API in our. We are making listaccessible call to get list of direct accessible accounts. For each account, we have used below GAQL query to fetch the details of that account. 

SELECT  customer.id,  customer.descriptive_name,  customer.manager, customer.auto_tagging_enabled, customer.status FROM customer WHERE customer.status = 'ENABLED'";


Using below function to make a request:
GoogleAdsServiceClient.SearchPagedResponse response;
response = googleAdsServiceClient.search(
SearchGoogleAdsRequest.newBuilder()
.setQuery(query)
.setCustomerId(Long.toString(customerId))
.build());


Even though we are using Enabled status , still i am seeing CUSTOMER_NOT_ENABLED error

```
errors {
  error_code {
    authorization_error: CUSTOMER_NOT_ENABLED
  }
  message: "The customer can\'t be used because it isn\'t enabled."
}
request_id: "03obkXEENDCCxVmotA_nvg"
````

Why the request is still failing with CUSTOMER_NOT_ENABLED error , if i have added the customer.status = 'ENABLED' in GAQL query. 

Thanks


Google Ads API Forum Advisor

unread,
May 11, 2022, 1:55:30 PM5/11/22
to r10.m...@gmail.com, adwor...@googlegroups.com
Hi Rten,

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

To investigate the issue further, could you please provide the complete request and response logs, with the request-id?

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You can provide it via Reply privately to author option.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2arp2Z:ref
Reply all
Reply to author
Forward
0 new messages