*Hi,* *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)* *Thanks. : )* -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a34001aa-ab13-458a-bb36-72c885962110%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.