Hi  Team,

So sorry to trouble again. I am using Python. 
For this requirement, which service I should use?  Should I also use 
"CustomerService" ?

Also, how to run the SQL query?

Did not found example for this requirement...

So sorry for such kind of low quality question~

Thanks!



在 2019年7月17日星期三 UTC+8上午1:50:23,adsapiforumadvisor写道:
>
> Hello Yang,
>
> The list_accessible_customers will return only the accounts that can be 
> directly accessible via the credentials that are used in the API call. Your 
> credentials might be having access to only top level manager account, hence 
> it is resulting that account only.
>
> In order to get the hierarchy of the accounts you have to use 
> Customer_client resource and have to perform search query  instead. Below 
> is the example search query for your reference. You could use this sample 
> program in Java 
> <https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java#L94>
>  
> and replace the query. Code samples in other languages can be found here 
> <https://developers.google.com/google-ads/api/docs/client-libs>.
>
> Search Query:"SELECT customer_client.resource_name, 
> customer_client.client_customer, customer_client.level, 
> customer_client.hidden FROM customer_client"
>
> Please give it a try and let me know if you have any further questions.
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001U8LWWE: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 [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 
"AdWords API and Google Ads 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/1bb93be1-d21e-4e4b-95b7-dea92d70ac4e%40googlegroups.com.

Reply via email to