You can also try this out, if you want to list individual items.. https://developers.google.com/adwords/api/docs/reference/v201705/CustomerService.Customer $customerService = $adWordsServices->get($session, CustomerService::class); $customers = $customerService->getCustomers(); foreach($customers as $k=>$v) { echo $v->getCustomerId(); echo $v->getDescriptiveName(); }
On Wednesday, May 31, 2017 at 8:25:16 PM UTC+8, Mihai Iliescu wrote: > > Thanks Shwetha Vastrad. > > Can someone help me with the code. I tried the one bellow but it does not > seem to print anything out: > > [...] > use Google\AdsApi\AdWords\v201702\mcm\CustomerService; > [...] > $adWordsServices = new AdWordsServices(); > $CustomerService= $adWordsServices->get($session, CustomerService::class); > $cid=$CustomerService->getCustomers(); > var_dump $cid; > > Page appears empty. > > [2017-05-31 15:22:07] AW_SOAP.INFO: clientCustomerId= operations=1 > service=CustomerService method=getCustomers responseTime=460 > requestId=000550d0f7ee23c00a1bb0dc1600bca3 server=adwords.google.com > isFault=0 faultMessage= > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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 --- 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 adwords-api+unsubscr...@googlegroups.com. 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/3f4807ad-1ff0-4a0b-9e4a-c021461dec6f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.