Hi Ernie,

Thanks for the response.

I understand that MutateCustomer can only update one customer at a time, 
but my question was if it is possible to search for multiple Customers 
(instead of CustomerClients).

Example 1:
      SearchGoogleAdsStreamRequest request1 =
              SearchGoogleAdsStreamRequest.newBuilder()
                  .setCustomerId("manager-customer-id")
                  .setQuery(
                      "SELECT customer_client.descriptive_name WHERE 
customer_client.id IN (1, 2, 3)")
                  .build();

This query will return the CustomerClient objects which have the provided 
IDs.

Example 2:
      SearchGoogleAdsStreamRequest request2 =
              SearchGoogleAdsStreamRequest.newBuilder()
                  .setCustomerId("manager-customer-id")
                  .setQuery(
                      "SELECT customer.descriptive_name FROM customer WHERE 
customer.id.id IN (1, 2, 3)")
                  .build();

This query will not return any results, as the only Customer object 
available when searching in this way is the Manager Customer itself.

So, my problem is, if I want to pull multiple Customers I have to pull the 
CustomerClient objects instead of Customer objects. And later on, if I want 
to update some of the CustomerClient objects I first have to pull single 
corresponding Customer object, because it is not possible to update 
CustomerClient directly.

Is it somehow possible to use the CustomerClient object to update the 
Customer object, or is it necessary to pull the related Customer first and 
then update it?

Thanks!


On Wednesday, July 21, 2021 at 9:19:57 AM UTC+2 adsapi wrote:

> Hi,
>
> Thanks for posting your concern.
>
> Please note that MutateCustomer 
> <https://developers.google.com/google-ads/api/reference/rpc/v8/CustomerService#mutatecustomer>
>  
> can only update one customer at a time, with this, I am afraid that 
> updating multiple client accounts that you are looking for is not possible. 
> With this, the provided process that you've mentioned is the current 
> possible way to update customers under a MCC account account.
>
> Let me know if you have further questions.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2JC7dj:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fb670bca-b2dc-4122-9116-1eb63dd32df6n%40googlegroups.com.

Reply via email to