Google Ads API Beta: Retrieve relevant customer_client data for oauthed MCC account

44 views
Skip to first unread message

Kenneth Oh

unread,
Sep 4, 2019, 5:17:33 PM9/4/19
to AdWords API and Google Ads API Forum
Hi,

I'm using the google-ads-python library for managing an MCC account that is managing around 1200 other accounts, in which many are "cancelled".

Using the customer_client resource, is there any way to filter out accounts that are cancelled to return only active accounts? I don't see any options in the documentation regarding status. 

Additionally for the customer_client resource, the fields id NOR descriptive_name gets returned, although I clearly see these values set in the UI or using the CustomerService GetCustomer method.

Lastly, if using the CustomerService service to use the GetCustomer method for all the accounts returned in a customer_client resource query, calls fail for inactive accounts and quota per minute usage gets quickly exhausted, in which ultimately I'm not able to get even simple account information under the MCC. 

Is there no simple way to retrieve relevant data for managed accounts with the currently oauthed MCC account?

Kenneth Oh

unread,
Sep 5, 2019, 3:14:19 PM9/5/19
to AdWords API and Google Ads API Forum
I resolved the issue of not receiving the customer_client fields (time_zonetest_accountmanagerdescriptive_namecurrency_code, and id) by updating my google-ads-python package to latest that contains support for querying for these fields.

Google Ads API Forum Advisor Prod

unread,
Sep 6, 2019, 9:55:37 AM9/6/19
to ohtke...@gmail.com, adwor...@googlegroups.com

Hi Kenneth,

Thank you for reaching support. Please find my response to your queries below:

  • Using the customer_client resource, is there any way to filter out accounts that are cancelled to return only active accounts? It is not possible to check the status of the account and filter out the accounts that are cancelled to return only active account using query via API. 
  • Is there no simple way to retrieve relevant data for managed accounts with the currently oauthed MCC account? Unfortunately, using the customer_client resource is the only way to query the data for managed accounts and there is no alternative to filter out data for inactive/cancelled accounts in the mentioned scenario. 
Let us know if you need any additional information.

Regards,
Nikisha Patel, Google Ads API Team

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