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