Hello all,

Documentation to CustomerService in Google Ads 
API: 
https://developers.google.com/google-ads/api/reference/rpc/v5/CustomerService

Best,
Atman

On Thursday, September 3, 2020 at 4:40:12 PM UTC+5:30 Atman Darji wrote:

> Hello,
>
> In Google AdWords API, we have a method *getCustomers* in 
> *CustomerService*. It gives us a list of all the customers which are 
> directly accessible by the authenticated user. In that list, we can get 
> *CustomerID*, along with *descriptiveName*, *currencyCode*, etc for each 
> customers.
> Reference: 
> https://developers.google.com/adwords/api/docs/reference/v201809/CustomerService#getcustomers
>
> I was exploring Google Ads API. In the Google Ads API, we have 
> *CustomerService*, but it doesn't have method *getCustomers*, instead we 
> have *ListAccessibleCustomers*, which returns 
> ListAccessibleCustomersResponse. That is just list of resource name of 
> customers directly accessible by the authenticated user. The resource name 
> just contains just *CustomerID* and nothing else. To get all other fields 
> of all the customers like *descriptiveName*, *currencyCode*, etc. we have 
> to make a function call to *GetCustomer(GetCustomerRequest)*, which 
> returns only one customer's all information. Hence we end up making API 
> calls for each customer to get all the required fields.
>
> If there are *N* customers accessible by the authenticated user, we have 
> to make only *1* API call to *AdWords* to get all the fields through 
> *getCustomers*, but in *Google Ads API* we have to make *N+1* API calls! 
> One for getting all the resource names through *ListAccessibleCustomers* and 
> N API calls to GetCustomer to get all the required fields of a customer.
>
> Is there a way to make it more efficient? Can we have the same behavior as 
> *getCustomers* in Google Ads API?
>
> Thank you in advance!
>
> Sincerely,
> Atman
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/444964dc-1afe-4259-a0a2-1b53c88216ddn%40googlegroups.com.

Reply via email to