Listing Accessible Google Ads Accounts for large hierarchies

40 views
Skip to first unread message

Goncalo Pereira

unread,
Mar 16, 2022, 7:03:02 AM3/16/22
to Google Ads API and AdWords API Forum
Hi,

I'm working with the new Google Ads API V10 and using the REST interface.

I currently have the need to list all accessible accounts from a given access token along with some information about them, for example the name of the account.

With the old AdWords API we were able to quickly get some basic information with a few requests, but for the new API (see doc get hierarchy example) we have to (1) list the immediate accounts and (2) get the hierarchy and (3) make a request for for each account individually to obtain that additional information I need.

For small accounts this is not an issue, but for large accounts, let's say 2000 accessible accounts it can take a really long time to list all that are accessible along with that additional information.

I have already parallelised some of these requests since I'm using searchStream method and the requests should be going into different accounts minimising the risk of hitting account rate limits. However, I'm a bit afraid that I might hit some non documented rate limit per second or minute with my developer token even though I should have unlimited operations per day.

Is there an easier way to get basic information for all the hierarchy? Or should I not need to worry about such request limits?

Thanks in advance,
Gonçalo

Google Ads API Forum Advisor

unread,
Mar 16, 2022, 3:44:14 PM3/16/22
to gon...@phybbit.com, adwor...@googlegroups.com
Hi Goncalo,

If requests are taking too long, you can break up your requests by specifying the manager customer ID parameter for the Get Account Hierarchy example. This way, you won't unnecessarily have to retrieve the entire account hierarchy, and can retrieve a subset. If this field is left blank, then the example will default to accessible accounts of the authenticating user. 

If you have standard access, you won't run into any access based limits with the Search/SearchStream methods. However, the RESOURCE_TEMPORARILY_EXHAUSTED may still occur if requests are being made too frequently (more on this here). 

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Ylphx:ref

Ngon Nguyen

unread,
Mar 17, 2022, 8:21:15 PM3/17/22
to gon...@phybbit.com, Google Ads API and AdWords API Forum
Chào mừng bạn đến với bảng nhớ tạm của Gboard, bất kỳ văn bản nào bạn sao chép sẽ được lưu tại đây.Sử dụng biểu tượng chỉnh sửa để ghim, thêm hoặc xóa đoạn.Nhấn vào một đoạn để dán vào hộp văn bản.Chạm và giữ một đoạn để ghim đoạn đó. Các đoạn đã bỏ ghim sẽ bị xóa sau 1 giờ.

Vào 18:03, Th 4, 16 thg 3, 2022 Goncalo Pereira <gon...@phybbit.com> đã viết:
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/cf9eb6b2-2c15-4245-abed-2027b1015a45n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages