You need to use $campaign->startDate instead of $campaign->startdate On Tuesday, February 5, 2013 12:39:36 AM UTC+4, Alan Coleman wrote: > > Thanks for your help Evgeniy, > > print_r(*$campaign*) is indeed showing me that StartDate is being > returned from Google: > > $selector->fields = array('Id','Name','Status','StartDate'); > > However the issue seems to be with writing the variable out: > > printf("<td>%s</td>"."\n",$campaign->startdate); > > I understand that PHP changes the variables down to lower case, this works > with Id, Name and Status. > > Thanks again for your help. > > On Monday, February 4, 2013 6:17:38 PM UTC, Evgeniy Bogdanov wrote: >> >> OK. Let's try to use StartDate and print_r(*$campaign*). To check what >> fields are returned from API. >> >> On Monday, February 4, 2013 9:35:34 PM UTC+4, Alan Coleman wrote: >>> >>> Here's the error passed back when I try to use startDate An error has >>> occurred: [SelectorError.INVALID_FIELD_NAME @ serviceSelector; >>> trigger:'startDate'] >>> >>> On Monday, February 4, 2013 4:46:10 PM UTC, Alan Coleman wrote: >>>> >>>> Hello everyone, >>>> >>>> I'm using GetCampaigns.php and am having trouble with >>>> $selector->fields. I'm selecting the following: >>>> >>>> *$selector->fields = array('Id', 'Name', 'Status', 'StartDate');* >>>> >>>> and writing them out like this: >>>> >>>> *printf("<td>%s</td>"."\n",$campaign->id);* >>>> *printf("<td>%s</td>"."\n",$campaign->name);* >>>> *printf("<td>%s</td>"."\n",$campaign->status);* >>>> *printf("<td>%s</td>"."\n",$campaign->startdate);* >>>> * >>>> * >>>> An error is telling me that StartDate is an undefined property. I'm* >>>> *confused >>>> because I'm* not* getting the INVALID_FIELD_NAME error. >>>> >>>> As always, any help would be gratefully appreciated. >>>> >>>> >>>> >>>>
-- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- 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. For more options, visit https://groups.google.com/groups/opt_out.