Hi, GetAllCampaigns.php will give you only the campaigns of the current account, so you need to make calls to http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccounts to retrieve your client accounts and then use GetAllCampaigns.php to retrieve the campaigns of one client at a time. You might also want to check http://groups.google.com/group/adwords-api/browse_thread/thread/615ffa6847844833/35feea43803b5cf8 which discusses this topic.
Cheers, Anash P. Oommen, AdWords API Advisor On Jul 15, 10:12 am, YK <ykar...@gmail.com> wrote: > I have different clients under 1 adwords account. I want to retrieve > all the client campaigns under that account. > In the previous version I was using > > $apilityUser = new APIlityUser(); > $all_accinfo=getManagersClientAccountInfos(); > > and then > foreach ($value as $iKey => $iValue) > { > if($iKey=='emailAddress') > { > echo $iKey.'=>'.$iValue; > } > } > > How do I do this now. The getallcampaigns.php returns no campaigns > when I comment clientId. When I put in clientId it returns the > campaigns for that 1 client. But I want to retrieve all the clients > under that adwords account. Kindly guide me. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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