Hi Alan,

https://developers.google.com/adwords/api/docs/appendix/selectorfields has 
a complete reference of all the valid selector names and the field that 
corresponds to it. As for stats, the campaign management APIs provide only 
minimal stats details, it is recommended that you use reports instead.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, February 5, 2013 3:15:38 AM UTC+5:30, Alan Coleman wrote:
>
> Whilst we're here Evgeniy,
>
> How do I pick up the other objects within Campaign Object, like CampaignStats 
> Object ( [startDate] for example.
>
> Thanks
>
> On Monday, February 4, 2013 9:09:23 PM UTC, Alan Coleman wrote:
>>
>> Okay so the camel casing is preserved, but it's a bit odd that StartDate 
>> works in the selector fields when the documentation suggests otherwise.
>>
>> Many thanks for your help, I've actually been introduced to you by Robert 
>> Chapman via email, you agreed to help us with our IPV6 issue on our 
>> Bluehost LAMP stack.
>>
>> I'll talk to you via email.
>>
>> Thanks again.
>>
>> On Monday, February 4, 2013 8:44:00 PM UTC, Evgeniy Bogdanov wrote:
>>>
>>> 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.


Reply via email to