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.
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