How to Get all the manager accounts???

65 views
Skip to first unread message

ankitt...@gmail.com

unread,
Oct 8, 2020, 2:20:50 AM10/8/20
to AdWords API and Google Ads API Forum
I want to get all the Manager account using oauth2 API, which is listing in attached screenshot.

But when I try to get all manager account after allow oauth2 service then I got only first manager account. Not others account.

Can You Please help me! ??
Capture.JPG

Google Ads API Forum Advisor Prod

unread,
Oct 8, 2020, 11:57:09 AM10/8/20
to ankitt...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out. The manager accounts on the screenshot you provided are not necessarily in the same account hierarchy. Thus, it is not possible to fetch information for all of these accounts at the same time if they happen to be not in the same hierarchy. But if they are, you could use the highest level manager account to authenticate and give it a try to query the customer_client.id from the customer_client resource and set customer_client.manager to true in the WHERE clause.

Thanks and regards,
Xiaoming, Google Ads API Team

 

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q267gd9:ref

ankitt...@gmail.com

unread,
Oct 9, 2020, 8:08:08 AM10/9/20
to AdWords API and Google Ads API Forum
When I use this then I got "DEVELOPER_TOKEN_PROHIBITED" exception.
And MY DEVELOPER TOKEN IS : 7R-IPv6nStS9_IFBQrbOLQ. 

I am using ListAccessibleCustomers service

Please help me to fix this.

Google Ads API Forum Advisor Prod

unread,
Oct 9, 2020, 3:45:35 PM10/9/20
to ankitt...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out. If you experience DEVELOPER_TOKEN_PROHIBITED error, that means you already tied a developer token to a Cloud Project and you will need to create a new Cloud Project to use this developer token. You could have multiple Cloud Projects per developer token, but you could only have one developer token for each Cloud Project.
Reply all
Reply to author
Forward
0 new messages