{
"resourceNames": [
"customers/0000000000",
"customers/11111111111",
....
]
}
I'm Dannison's colleague addressing your concern as he is out of office. You may refer to the API Call structure documentation which illustrates in detail about the endpoint that should be used and the request URL. CustomerClientLinkService will have the URL path as customerClientLinks. This can also be seen in the proto file definition too. I have attached the sample request and response logs which might be helpful.
Thanks,
Bharani, Google Ads API Team
Hello Pierre,
I am Bharani's colleague working on this concern. The CURL operation to get the manager customers under the MCC account is below. This query will only give the resource names of the customers, if you want to get the customer details then have to make one API call for each customer to fetch those details.
curl -X POST --header 'Authorization: Bearer ACCESS_TOKEN_HERE' --header 'developer-token: DEVELOPER_TOKEN_HERE' --header 'Content-Type: application/json' --header 'login-customer-id: LOGIN_CUSTOMER_ID_HERE' --data @- https://googleads.googleapis.com/v1/customers/CUSTOMER_ID_HERE/googleAds:search <<EOF
{ query: "SELECT customer_client.resource_name, customer_client.client_customer, customer_client.level, customer_client.hidden FROM customer_client", validate_only: "false" }
EOF
Please give it a try and let me know if you have any further questions.
Regards,
Sai Teja, Google Ads API Team