RE: Get accounts associated to manager account in Google Ads API

2019-04-25 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hi Tim, You can use the query that Vadim mentioned to get your client accounts. The field *level *will give you the distance between given customer and client. Regards, Anthony Google Ads API Team =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group:

Re: Get accounts associated to manager account in Google Ads API

2019-04-25 Thread vadim
Hi Anthony, I'm wondering that you have an mistake in explanation. Using CustomerClientService possible just to retrieve only one CustomerClient. In order to retrieve all Customer

Re: Get accounts associated to manager account in Google Ads API

2019-04-25 Thread Tim
Hi Anthony, Thank you for the help. I'm a little confused on how to use the CustomerClientService. Firstly to get the service should I be doing this with a GoogleAdsClient that has login customer ID set to the manager account ID? Then, how do I use the service to determine if a given account

RE: Get accounts associated to manager account in Google Ads API

2019-04-25 Thread googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
Hi Tim, You can use the CustomerClientService to get the accounts under your manager. For future reference, you can use this guide

Get accounts associated to manager account in Google Ads API

2019-04-25 Thread Tim
Given a manager account ID, how can I find the sub accounts this manager account is associated with? In AdWords API there's the ManagedCustomerService but I cannot see an equivalent approach in Ads API. Thanks -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: h

Re: Get accounts associated to manager account

2018-04-30 Thread 'Bharani Cherukuri (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Aaron, You could use the CustomerService.getCustomers() without specifying the clientCustomer Id in the request header. This will return the customerIds of the accounts which are directly accessi

Re: Get accounts associated to manager account

2018-04-30 Thread aaron
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 ha

Re: Get accounts associated to manager account

2017-04-04 Thread 'Peter Oliquino' via AdWords API Forum
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

Re: Get accounts associated to manager account

2017-04-04 Thread Vikram Tiwari
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 hierar

Re: Get accounts associated to manager account

2017-04-04 Thread 'Peter Oliquino' via AdWords API Forum
Hi Vikram, The AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED error that you are encountering indicates that there was no customer ID specified in your request header. This mea

Re: Get accounts associated to manager account

2017-04-03 Thread Vikram Tiwari
To give more relevance. I am using OAuth and using refresh_token and other values to create proper adwords client. Normally if I were to use CustomerService API, it works fine. I do not have any ClientCustomerId to pass at this moment (in code) since the only thing I have from end user is refre

Re: Get accounts associated to manager account

2017-04-03 Thread Vikram Tiwari
Hey Peter - Thanks for the quick reply. I am using the exact same code on my local and getting following error: suds.WebFault: Server raised fault: '[AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED @ ; trigger:'']' Not sure what I am supposed to pass here. On Monday, April 3, 2017 at 8:38

Re: Get accounts associated to manager account

2017-04-03 Thread 'Peter Oliquino' via AdWords API Forum
Hi Vikram, Yes, the more correct service to use to retrieve the associated accounts to your MCC should be the ManagedCustomerService and you may refer to this Python sample code

Get accounts associated to manager account

2017-04-03 Thread Vikram Tiwari
Sample code: customerService = adwords_client.GetService( 'CustomerService', version='v201609') customers = customerService.getCustomers() When I use this, for most accounts I am able to get all the accounts associated. But recently I got issues with one of the accounts where