Cancelled accounts in new Ads API

40 views
Skip to first unread message

Marc Selman

unread,
Jan 3, 2019, 11:23:41 AM1/3/19
to AdWords API and Google Ads API Forum
There was a question in this forum earlier about the Adwords API returning cancelled accounts: https://groups.google.com/forum/#!topic/adwords-api/NC5vIw0_Shs

I'm using the new Ads API (v0.7) and when retieving CustomerClientLinks I'm also receiving cancelled accounts.
There is no way to identify whether an account is cancelled or not.
I do receive a 'hidden' parameter but not a 'cancelled' parameter.
In the Google Ads UI I can select whether I want to show hidden or cancelled accounts or not. But there seems to be no way to do that with the API.

Since the new Ads API is still being built will there be a field added to identify whether an account is cancelled or not?

Teja Makani

unread,
Jan 3, 2019, 8:58:03 PM1/3/19
to AdWords API and Google Ads API Forum
Hello Marc,

For now there is no way to identify the canceled accounts via API. I will let my team know regarding your suggestion and update you once I have more information. Meanwhile you could use AccountLabels to see the cancelled accounts as an alternative way to identify them via the API as mentioned on that thread. Also, you could keep an eye on our blog for information related to future releases and latest versions. 

Regards,
Sai Teja, Google Ads API Team

Marc Selman

unread,
Jan 4, 2019, 9:11:19 AM1/4/19
to AdWords API and Google Ads API Forum
Hi Teja,

Thanks for your reply.
I'm happy to hear my suggestion will reach the team.

Your suggestion for using AccountLabels is not possible using the new Ads API I think... There is nog ManagedCustomerService in that API and no AccountLabel methods on the CustomerService.

I'm trying to show the listing of all customers and possible sub-customers available to the connected account. At the moment that's a recursive function where I need to get the CustomerClientLinks for every customer to see if there are sub-customers.
And then I need to get the customer data to retrieve the DescriptiveName.
It takes a lot of call for a large tree and is thus very slow.

If I would also need to get the labels for every customer to see if it's cancelled that would add more calls to the function and make it even slower.
Also I would reach the requests/minute rate limit easily.

I would like to be able to get the complete customers tree in one (paged) request with at least the properties: id, name, hidden, cancelled and something like a parentId.
That way I can make a dropdown selection similar to the customer selector dropdown in the Google Ads UI.


I've also tried querying the data with the Google Ads Query Laguage but it seems to always be in the scope of 1 customer.



Op donderdag 3 januari 2019 21:58:03 UTC+1 schreef Teja Makani:

Teja Makani

unread,
Jan 4, 2019, 8:45:54 PM1/4/19
to AdWords API and Google Ads API Forum
Hello Marc,

I understand your concern. Since the new API is evolving at this point of time, It is recommended to mix match the functionalities of new and old API until the new API is fully developed. Later when those functionalities are available, you can migrate them to the new API. AccountLabels is not available in new API but you can use the old API(AccountLabels) to get this done as a work around. Using old API you can get the hierarchy in a single call using ManagedCustomerService.get and code sample Java is here. Code samples in other languages can be found here

I passed your interest on ManagedCustomerService to our team to prioritize. I will let you know once these functionalities are available in new API. lso, you could keep an eye on our blog for information related to future releases.


Regards,
Sai Teja, Google Ads API Team

On Thursday, January 3, 2019 at 6:23:41 AM UTC-5, Marc Selman wrote:
Reply all
Reply to author
Forward
0 new messages