I used "ads API" to get a list of customers(tree structure).
=========================================================================================================================================================
ads api
query = "SELECT customer_client.client_customer, customer_client.level FROM customer_client ";
SearchGoogleAdsRequest request = SearchGoogleAdsRequest.newBuilder().setCustomerId(String.valueOf(clientId)).setPageSize(PAGE_SIZE).setQuery(query).build();
SearchPagedResponse response = googleAdsServiceClient.search(request);
=========================================================================================================================================================
However, we received more listings than when we used the "AdWords API" to fetch customer lists from the same account.
=========================================================================================================================================================
* adwords api
ManagedCustomerServiceInterface managedCustomerService = adWordsServices.get(session, ManagedCustomerServiceInterface.class);
SelectorBuilder selectorBuilder = new SelectorBuilder().fields(ManagedCustomerField.CustomerId, ManagedCustomerField.Name).offset(offset).limit(PAGE_SIZE);
ManagedCustomerPage page = managedCustomerService.get(selectorBuilder.build());
=========================================================================================================================================================
Analyzing the customer list, "ads API" returns a list containing customers that were previously disabled.
Please let me know what you need to do to get results like "AdWords API".
++
query = "SELECT customer_client_link.client_customer, customer_client_link.hidden, customer_client_link.status,
customer.id FROM customer_client_link ";
customers/1111111111, false, INACTIVE, 00000000000(clientid)
customers/1111111111, false, ACTIVE, 00000000000(clientid)
When I run this query, I get two 2 results.
How do I interpret this if I return the same customer? (ACTIVE/INACTIVE)