Hello everyone,

I'm a little confused about about Selector Fields. In this instance I'm 
using the AdGroupService, the appendix is here: 
https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201209-AdGroupService

It may be easier if I explain my confusion by showing some PHP, this is 
from the example GetAdGroups.php

*//The Selector Fields. I understand that these names are the fields we 
wish to return back via the API*
*$selector->fields = array('Id','Clicks');*
*
*
*//Display the results*
*printf("<td>%s</td>"."\n",$adGroup->id);*
*printf("<td>%s</td>"."\n",$adGroup->stats->clicks);*

Everything above works and I understand it.

Now say for instance I'd like to return ExperimentId with my data? I'd 
follow the appendix and add ExperimentId to my Selector like this:

*$selector->fields = array('Id', 'Clicks', 'ExperimentId');*
*
*
*//Display the results*
*printf("<td>%s</td>"."\n",$adGroup->id);*
*printf("<td>%s</td>"."\n",$adGroup->stats->clicks);*
*
*
*//This is where I'm having trouble, referencing the selector with respect 
to its path.*
*printf("<td>%s</td>"."\n",$adGroup->AdGroupExperimentData->experimentId);*
*
*
Why would the following return an undefined property?*
*

Any help would be greatly appreciated.

Many thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to