listaccesiblecustomers

47 views
Skip to first unread message

cv

unread,
Apr 6, 2021, 10:07:05 AM4/6/21
to AdWords API and Google Ads API Forum
Hello,

I can see that listAccessibleCustomers info can only return resource name.
Can I get the customer details along with resourcename?

To get details I need to make new API call individually.

Also by looking at accessible customers only enduser cannot identify which account is getting linked.

Thanks,

Google Ads API Forum Advisor Prod

unread,
Apr 6, 2021, 3:15:45 PM4/6/21
to chirag....@gmail.com, adwor...@googlegroups.com
Hello,

Thanks for reaching out. 

As you pointed out, the ListAllAccessibleCustomers method only returns the resource name. If you can provide us with the specific details that you would like included, please let us know. 

Also, can you please clarify the statement:

"Also by looking at accessible customers only enduser cannot identify which account is getting linked"

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2EqEHs:ref

cv

unread,
Apr 7, 2021, 1:00:48 AM4/7/21
to AdWords API and Google Ads API Forum
Hi Matt,

If you can provide us with the specific details that you would like included, please let us know. 
-> I need customer details like time_zone, manager, test_account, descriptive_name, currency_code along with listAccessible customers.
Docs said it only will return resource name.

"Also by looking at accessible customers only, enduser cannot identify which account is getting linked"
-> I mean to say I am using oauth flow to link account to web application.
In application I was asking enduser to select account which he want to get report for. In this case if authorised google ads account has more then 1 account he need to identify which account data is required. 
Also it would help to get login-customer-id info.

Thanks,

Google Ads API Forum Advisor Prod

unread,
Apr 7, 2021, 2:06:47 AM4/7/21
to chirag....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for your follow up.

For every resource name returned by the listAccessibleCustomers, you may then perform a follow up request (use the customer_id from the resource name) using the CustomerService.GetCustomer request to retrieve the customer details you are looking for.

The login-customer-id should be the account ID of the MCC/manager account which you are authenticating as. I would recommend that you also consider using the get account hierarchy example as this should return the list of accounts associated to a specific MCC/manager account.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2EqEHs:ref
Reply all
Reply to author
Forward
0 new messages