Hello, Sai :),

Thanks for the reply.

As you suggest me to Apply "clientCustomerId" of manager a/c to fetch the 
all clients user in my manager a/c.
Please suggest any way to get clientCustomerId of the manager account which 
is connected to my APP, 
I am using this code for authentication.

$client = new Google_Client();
$client->setClientId(GOOGLE_CLIENT_ID); 
$client->setClientSecret(GOOGLE_CLIENT_SECRET);
$client->setRedirectUri(REDIRECT_URL);
$client->setAccessType("offline");
$client->setApprovalPrompt("force");
$client->addScope("email");
$client->addScope("profile");
$client->addScope("https://www.googleapis.com/auth/adwords";);


I am unable to find the "clientCustomerId" after completing the 
authentication, 

On Thursday, October 3, 2019 at 8:36:26 PM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hello Praduman,
>
> If you are using AdWords API, you can use the ManagedcustomerService.get 
> <https://developers.google.com/adwords/api/docs/reference/v201809/ManagedCustomerService#get_1>
>  function 
> to fetch all the clients under your manager account. You have to pass the 
> manager customer id as the customerClientId for this specific API call as 
> we are fetching all the clients linked to manager account.
>
> If you are using Google Ads API, please use the below search query to get 
> the client accounts linked to a specific manager account. Even here while 
> making the API call you have to use manager customer id as the 
> customerClient Id for this specific search query. 
>
> Query: "SELECT customer_client.client_customer, 
> customer_client.currency_code, customer_client.descriptive_name, 
> customer_client.hidden, customer_client.id, customer_client.level, 
> customer_client.manager, customer_client.resource_name, 
> customer_client.test_account, customer_client.time_zone  FROM 
> customer_client"
>
> Please let me know if you have any further questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UKM2Ru: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/0f8dfac3-d6d5-4b61-8dfc-f43c5fe3b939%40googlegroups.com.

Reply via email to