Ok I think I found out using the "customerIds" field of the ServicedAccountSelector. Thank you for pointing me in the right direction
Gabriel On 3 nov, 11:35, "Magu(s)" <lem...@gmail.com> wrote: > Thank You Federico for your quick answer. > > I have already managed to get this list but the problem is that it is > flat. > It mixes accounts with "canManageClients" set to true with the ones > set to false. > > I have noticed that the accounts with "canManageClients = false" > belong to one with "canManageClients = true". This is the way I see > them in my MCC > But in this list I don't know who belong to whom. > > I tried calling AdWordsUser with a accound id as seventh argument ( as > I read in the docs ) but it always returns the complete list, ignoring > the account Id given. > > Do I have to assign children to parents by hand ? It must be an easy > way to do this. > > Thank you > > On 2 nov, 12:48, Federico Ulfo <federicotest...@gmail.com> wrote: > > > Hi Gabriel, > > in PHP is pretty easy: > > > <?php > > > date_default_timezone_set( "Europe/Rome" ); > > error_reporting(E_STRICT | E_ALL); > > > include dirname(__FILE__) . '/../../src/Google/Api/Ads/AdWords/Lib/ > > AdWordsUser.php'; > > > $user = new AdWordsUser(); // you must have configured the auth.ini > > file with your MCC manager info / developer token > > $servicedAccountService = > > $user->GetServicedAccountService('v201008'); > > > $selector = new ServicedAccountSelector(); > > $graph = $servicedAccountService->get($selector); > > > echo "<pre>"; > > print_r( $graph ); > > echo "</pre>"; > > > ?> > > > Best, > > Federicowww.federicoulfo.it > > > On Nov 2, 11:00 am, Gabriel T <lem...@gmail.com> wrote: > > > > Hello, > > > > In my MCC I have a list of MCC clients. How can I get them with a > > > command line ? With the API ? > > > I can get all my accounts using a ServicedAccountService call to the > > > SOAP ws but they are not sorted by clients. > > > So how can I get the list of my clients ? > > > > Thank you -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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