Unable to get sub accounts (ListAccessibleCustomers) with service account flow

35 views
Skip to first unread message

Giovanni Quarella

unread,
Mar 4, 2023, 3:59:54 AM3/4/23
to Google Ads API and AdWords API Forum
Hi,

The call to
var customerService = client.GetService(Services.V13.CustomerService);
var customers = customerService.ListAccessibleCustomers(new ListAccessibleCustomersRequest());

gives me only the id of account manager.

I should be able to get all customer ids, that is subaccounts linked with manager.

Is there something else to do?

Thanks


Google Ads API Forum Advisor

unread,
Mar 6, 2023, 4:57:30 AM3/6/23
to gqua...@gmail.com, adwor...@googlegroups.com

Hi Giovanni,


Thanks for reaching out to the Google Ads API team. I hope you are doing well today.
 

With regards to your concern, could you provide more context or details to your issue so that we can further check and provide precise guidance accordingly?


Regards,

Google Logo Google Ads API Team



ref:_00D1U1174p._5004Q2jW0jt:ref

Giovanni Quarella

unread,
Mar 7, 2023, 4:00:51 AM3/7/23
to Google Ads API and AdWords API Forum
In the meanwhile I discovered a user with the same problem and with his solutions it works


I still do not understand why  ListAccessibleCustomers does not work

Google Ads API Forum Advisor

unread,
Mar 7, 2023, 8:48:32 AM3/7/23
to gqua...@gmail.com, adwor...@googlegroups.com

Hi Giovanni,
 

Thank you for getting back to us. I hope you are doing well today.
 

Moving forward to your concern, I really understand that you encountered an error when you tried the ListAccessibleCustomers. However, can I ask if you tried the solution that you saw in the https://stackoverflow.com/questions/68265386/get-a-list-of-mcc-accounts? Does it solve your problem? If yes, then we are happy that you solved the problem. If not, could you provide the complete request and response logs with request ID and request header generated on your end so that we can further check and provide precise guidance accordingly?
 

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.
 

Giovanni Quarella

unread,
Mar 7, 2023, 10:17:14 AM3/7/23
to Google Ads API and AdWords API Forum
I am using the last .NET client library.  ListAccessibleCustomers gives me no error at all, but return only the account id of the caller and not all the account id that I retrieve using what I found in the above stackoverflow link.
Reply all
Reply to author
Forward
0 new messages