Hello,

Unfortunately, It is not possible to get the descriptive name of all the
accounts in a single API call. You have to iterate through all the
customers to get the descriptive_name. To keep the data normalized we are
holding only one resource responsible for a data field.

Regards,
Sai Teja, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/05/19 00:06:31 he...@websavvy.com.au wrote:

Is there a way to get the descriptive_names without making a separate call
for each customer_client? I have approximately 200 client accounts under a
manager account, and that's a lot of API calls to get the names of them.

On Saturday, February 9, 2019 at 5:52:40 AM UTC+11,
googleadsapi-forumadvisor wrote:

Hello Anand,

Descriptive name for the customer is not available in the customer_client
<https://developers.google.com/google-ads/api/docs/fields/customer_client> resource.
You have to make another API call to the customer
<https://developers.google.com/google-ads/api/docs/fields/customer> resource.
You could use the available customer fields in the customer
<https://developers.google.com/google-ads/api/docs/fields/customer> resource
and can pass each customer Id to get the respective details of that
customer. Below is the sample search query to fetch the customer details
via customer resource.

Query in DotNet format given below:
Query = @"SELECT
                  customer.resource_name,
                  customer.descriptive_name,
                  customer.id,
                  customer.test_account,
                  customer.tracking_url_template FROM customer",
                  CustomerId = customerId.ToString() //Pass the customer Id
that you found on the resource name earlier.

Please let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=7-9951000025233&hl=en&ctx=1>

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@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/c7dcc262-abb6-4fca-b764-f5d43fea94ae%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/c7dcc262-abb6-4fca-b764-f5d43fea94ae%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@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/1a0q3100000000018jvuf60024hffsy6smjie9l64o30c1g68qj4cpj%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • custome... Anand Sumo
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Anand Sumo
        • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
          • ... heath
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to