Fetching the customer_client.name for a customer

783 views
Skip to first unread message

Noémi Molnár

unread,
Apr 2, 2019, 11:44:26 AM4/2/19
to AdWords API and Google Ads API Forum
I would like to return the id, currencyCode, timeZone, descriptiveName for each customer_client for a customer. The customer_client resource group returns the id, currencyCode, timeZone, but not the descriptiveName. I tried to use request the descriptiveName for the customer_clients, but it returned "USER_PERMISSION_DENIED" error. 
We can fetch the name of the ManagedCustomerServices from the Adwords API without any problem. 

Is it possible to fetch the customer_client's descriptiveName for a customer?

googleadsapi...@google.com

unread,
Apr 2, 2019, 2:46:10 PM4/2/19
to no...@swydo.com, AdWords API and Google Ads API Forum
Hi Noemi,

Unfortunately, this field is currently not available for customer_client. However, you can make a call to the Customer resource to get the descriptive name.

Regards,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/87f45c20-b55b-47ea-badc-916105596c0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Noémi Molnár

unread,
Apr 4, 2019, 10:37:34 AM4/4/19
to AdWords API and Google Ads API Forum
Hi Anthony,

I use the Customer resource for returning the details for the customers, but it only returns the data for the customers directly accessible by the user authenticating the call, but the user authenticating the call, does not seem to have the permission to return data for the AccessibleCustomers with 1 or higher 'level' value. 

Is it possible to fetch the descriptive_name for all of the customers returned by the /customers:listAccessibleCustomers request for a specific user, with the same credentials?

googleadsapi...@google.com

unread,
Apr 4, 2019, 4:55:52 PM4/4/19
to no...@swydo.com, AdWords API and Google Ads API Forum
Hi Noemi,

Descriptive name for the customer is not available in the customer_client resource. You have to make another API call to the customer resource. You could use the available customer fields in the customer resource and can pass each customer Id to get the respective details of that customer.

Thanks,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Noémi Molnár

unread,
Apr 5, 2019, 3:39:43 AM4/5/19
to AdWords API and Google Ads API Forum
Hi Anthony,

I did what you suggested, but it only returns data for the users with level: 0. 

googleadsapi...@google.com

unread,
Apr 5, 2019, 1:01:15 PM4/5/19
to no...@swydo.com, AdWords API and Google Ads API Forum
Hi Noemi,

Can you try the following query:
SELECT
 customer.resource_name,
 customer_client.level,
 customer_client.client_customer,
 customer_client.resource_name
FROM
customer_client

If you still face issues, please share your request and response through reply privately to author so I can take a closer look.

Regards,
Anthony
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Suresh Yadav

unread,
Jul 16, 2019, 11:33:46 AM7/16/19
to AdWords API and Google Ads API Forum
Hey,

Does we get solution to this issue.
I want to display list of Accounts Names of all customer_client , but the below query only gives owner account name for each row.
I can't hit get customer API is loop as it reach quota limit after 30 calls and we have more than that.

Any suggestion how to get Account names of customer_client in 1 or 2 api hits.

Thanks
Suresh 

Google Ads API Forum Advisor Prod

unread,
Jul 16, 2019, 4:35:04 PM7/16/19
to sures...@gmail.com, adwor...@googlegroups.com
Hey Suresh,

You could use paging for your results so that more data gets returned during your API call and you will need less calls. 

Regards,
Anthony
Google Ads API Team

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