i have also this problem... just created new MCC account 1h ago and all i got was [customerId] => 0 for all 5 accounts.
On Wednesday, July 25, 2012 10:56:51 PM UTC+2, Sander wrote: > > Hello Kevin, > > I took my problem out of the running topic on > https://groups.google.com/forum/?fromgroups#!topic/adwords-api/RuzzccFvpE8 to > avoid confusion and because that discussion is flagged as answered. > > > I just made a brand new account, but have the same result with zeros : > > My code: > > $user = new AdWordsUser(null, $username, $password, $developerToken); > $user->SetDefaultServer("https://adwords-sandbox.google.com/"); > $user->SetClientId(null); > > $campaignService = $user->GetService('CampaignService', 'v201109_1'); > // Create selector. > $selector = new Selector(); > $selector->fields = array('Id', 'Name'); > $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); > // Create paging controls. > $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); > do { > // Make the get request. > $page = $campaignService->get($selector); > // Display results. > if (isset($page->entries)) { > foreach ($page->entries as $campaign) { > printf("Campaign with name '%s' and id '%s' was found.\n", > $campaign->name, $campaign->id); > } > } else { > print "No campaigns were found.\n"; > } > // Advance the paging index. > $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; > } while ($page->totalNumEntries > $selector->paging->startIndex); > > > $campaignService = $user->GetService('CampaignService', 'v201109'); > $customerSyncService = $user->GetService('CustomerSyncService', > 'v201109'); > > $accountService = $user->GetService("ServicedAccountService", > 'v201109'); > $selector = new ServicedAccountSelector(); > $page = $accountService->get($selector); > > echo "<PRE>"; > print_r($page); > foreach ($page->accounts as $account) { > print "Customer ID: {$account->customerId}\n"; > } > > Resulting in: > > No campaigns were found. > > ServicedAccountGraph Object > ( > [accounts] => Array > ( > [0] => Account Object > ( > [customerId] => 0 > [login] => client_1+testapisand...@gmail.com > [companyName] => > [canManageClients] => > [currencyCode] => > [dateTimeZone] => > ) > > [1] => Account Object > ( > [customerId] => 0 > [login] => client_2+testapisand...@gmail.com > > [companyName] => > [canManageClients] => > [currencyCode] => > [dateTimeZone] => > ) > > > Am I in the wrong ? > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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