Hi Peter,

Is there perhaps a way to programmatically retrieve the MCC account_id from 
the AdWords API so I can then use that in the ManagedCustomerService?

Regards,
Aaron

On Tuesday, April 4, 2017 at 4:35:17 PM UTC+8, Peter Oliquino (AdWords API 
Team) wrote:
>
> 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:
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.
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/c981b57d-a4f1-4273-8c48-8b06deacf624%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... aaron
    • ... 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to