I've tried with this given query as below,

URL 
: 
https://googleads.googleapis.com/v17/customers:listAccessibleCustomers/googleAds:searchStream
Method : POST
QueryParam : SELECT customer.id, customer_client.id, 
customer_client.descriptive_name, customer.descriptive_name, 
customer.status, customer_client.status FROM customer_client
Response: [image: Screenshot 2024-06-07 120110.png]



I'm getting error like this. Can you please appropriate solution for this. 
I want the customer details in this " 
https://googleads.googleapis.com/v17/customers:listAccessibleCustomers/googleAds:searchStream";
 
URL. Is it possible? If not can you provide appropriate endopoint for the 
same.

Thanks

On Friday, June 7, 2024 at 11:42:09 AM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> You can use the customer_client 
> <https://developers.google.com/google-ads/api/fields/v17/customer_client> 
> report, 
> it provides the link between the given customer and a client customer. 
> CustomerClients only exist for manager customers and all direct and 
> indirect client customers are included, as well as the manager itself. 
> Please see the below sample query to retrieve the 'status' (CANCELED, 
> CLOSED, ENABLED, SUSPENDED) and 'account name' of the manager and client 
> customer: 
>
>
> SELECT customer.id, customer_client.id, customer_client.descriptive_name, 
> customer.descriptive_name, customer.status, customer_client.status FROM 
> customer_client
>
> I have tried to replicate the above query from my end using my customer ID 
> and I got a successful run on the query and the results are returned.
>
> Also, I would suggest you use the Query Builder 
> <https://developers.google.com/google-ads/api/fields/v16/customer_client_query_builder>
>  
> to build your query and Query Validator 
> <https://developers.google.com/google-ads/api/fields/v16/query_validator> to 
> validate your query. You can utilize GoogleAdsService.SearchStream 
> <https://developers.google.com/google-ads/api/reference/rpc/v16/GoogleAdsService#searchstream>
>  or GoogleAdsService.Search 
> <https://developers.google.com/google-ads/api/reference/rpc/v16/GoogleAdsService#search>
>  to 
> retrieve the objects.
>
> Hope this helps! Let us know if you have any further queries.
>
>   
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02tJEen:ref" (ADR-00238738)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/21251f86-c66d-4472-a266-ade508e31e4dn%40googlegroups.com.

Reply via email to