Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-05 Thread Anash P. Oommen (AdWords API Team)
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 in

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Alan Coleman
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

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Alan Coleman
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

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Evgeniy Bogdanov
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(

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Alan Coleman
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("%s"."\n",$campaign->startdate); I unders

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Evgeniy Bogdanov
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 @ servic

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Alan Coleman
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

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Alan Coleman
Thanks Evgeniy, This is odd because startDate is giving me INVALID_FIELD_NAME and StartDate isn't. Thoughts? I think this is maybe a PHP issue with my code: function GetCampaignsExample(AdWordsUser $user) { // Get the service, which loads the required classes. $campaignService = $user->G

Re: Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Evgeniy Bogdanov
Hi Alan. Adwords API do not drops errors on unknown fields. So you need to ensure that you're sending correct selector name. For you case correct name is startDate. You can validate your selectors using next link - https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201209-C

Having trouble with Selector fields in GetCampaigns.php

2013-02-04 Thread Alan Coleman
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("%s"."\n",$campaign->id);* *printf("%s"."\n",$campaign->name);* *prin