Get managed customer List (ads API, adwords API)

104 views
Skip to first unread message

SHbaby...@gmail.com

unread,
Apr 2, 2019, 8:41:53 AM4/2/19
to AdWords API and Google Ads API Forum
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. : )

googleadsapi...@google.com

unread,
Apr 2, 2019, 10:57:33 AM4/2/19
to AdWords API and Google Ads API Forum
Hello Kim, 

You won't be able to filter the cancelled accounts. We have raised a feature request on your behalf and passed it to the team. Please keep an eye on our blog for any future updates.

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages