Thanks for the suggestion. But wanted to ask if there is something wrong in 
our implementation:
1. We call get customer service's get customer method to get the customer 
details who has logged in.
2. If the customer is MCC, we get managed accounts under that customer 
using the managed customer service (by selecting predicate that none of the 
accounts returned can manage other accounts)
3. if the customer is not MCC, then we just return the details of that 
customer.

Do you think there is any caveat in this approach?

The negative conditions in step 1 are: 
1. The customer returned can be null (in case user has signed up for google 
ad words but has not completed sign up process) 
*2. Multiple customer entries are returned (is this possible??)*

We dont' see any negative conditions in step 2 or 3.

In the example that you have shared, the complete hierarchy is shared, an 
MCC can managed C1 and C2. C2 can manage C3. So we will get the complete 
tree. Our implementation requires that for C1 MCC account, we show C1 and 
C3.


On Wednesday, August 24, 2016 at 10:46:00 PM UTC-7, Peter Oliquino wrote:
>
> Hi Karan,
>
> Thanks for the information. You may use only the ManagedCustomerService. 
> The AdWords API client library has an example on how to use the 
> ManagedCustomerService.get to get the list of accounts managed by the MCC. 
> Please check out our GetAccountHeirarchy 
> <https://developers.google.com/adwords/api/docs/samples/java/account-management#get-the-account-hierarchy-under-the-current-account>
>  example. 
> Additionally, please use your *MCC account ID* as the *clientCustomerId* in 
> your *ads.properties* file when running the example.
>
> Thanks and 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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/2d7c6976-0158-410c-a519-d06f6dc238b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to