2
votes

Using Google Ads API "Get Account Hierarchy" to get all accounts. https://developers.google.com/google-ads/api/docs/account-management/get-account-hierarchy?hl=en

Found out that canceled accounts are not being retrieved.

I do see the canceled accounts are being reported in the UI and in their Google Data Studio connector. I guess both use the old AdWords API.

Is there a way to fetch and report canceled accounts via Google Ads API? Is it recommended to use the old AdWords API?

1
I'm confident their UI doesn't use the old API. Rather, it is powered by a private API which is different from both the AdWords and Google Ads APIs, hence multiple functionalities are unavailable through the public APIs. Are you sure AdWords API returns canceled accounts? I'm not, to be honest. However, you are safe to use AdWords API, it's supported. Anyway, make sure to ask the same question here. Google engineers will help you. They always do, in my experience.Riwen

1 Answers

0
votes

Google Ads team answered: Unfortunately, cancelled accounts will not be returned in either of the APIs. For more information, you may refer to this blog post (https://ads-developers.googleblog.com/2018/03/changes-to-inactive-adwords-accounts.html). I hope this helps.