Makes sense. But then shouldn't a better example be: - get accounts using CustomerService.getCustomers - loops though accounts to check if the account has canManageClients set as true - if so, then gets all the associated accounts to that manager account
Returns all accounts, including the hierarchy of manager accounts. On Tuesday, April 4, 2017 at 12:22:45 AM UTC-7, Peter Oliquino wrote: > > Hi Vikram, > > The AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED > <https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED> > error > that you are encountering indicates that there was no customer ID specified > in your request header. This means that you may have not specified a > customer ID value in the client_customer_id field in your configuration > file. > > Please note that the ManagedCustomerService is different from the > CustomerService. In the CustomerService.getCustomers > <https://developers.google.com/adwords/api/docs/reference/v201702/CustomerService#getCustomers>, > > it is possible that no customer is specified in the request header as > stated in the link. However, using the ManagedCustomerService and other > AdWords API services will require you to pass the customer ID in your > request header. > > Additionally, since you are using the ManagedCustomerService, you will > need to use your MCC account ID as the value for you client_customer_id. > > 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/6f0544f7-fc30-4352-bf7c-1a518a2e70da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
