Hi Vikram,

Yes, what you have suggested is an ideal approach, however, the 
CustomerService.getCustomers currently does not function as what you have 
stated. Currently, the CustomerService.getCustomers can only return 
customers associated to the login you used to authenticate the request. 
These customers that I mentioned, however, does not necessarily mean that 
they are in the same manager structure hierarchy. You can find out more 
about this feature by visiting this blog post 
<http://googleadsdeveloper.blogspot.com/2016/10/access-multiple-adwords-accounts-with.html>
.

What I could recommend is that to first use the ManagedCustomerService.get 
and using the customer IDs from the result, make separate calls using the 
CustomerService for each of the customer IDs to check if canManageClients = 
true. If true, then you may make another call to ManagedCustomerService to 
return the next hierarchy if available.

I hope this helps and please let me know if you are still experiencing any 
issues using the any of the services.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2755e728-e921-47c7-8eca-4323f283f38a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to