Hey thanks for the reply. Sorry I didnt clarify myself. I also tried 
'StartDate' and 'EndDate' in the ad group ad stats selector, it still not 
work.

On Friday, September 21, 2012 4:44:25 AM UTC-4, Anash P. Oommen wrote:
>
> Hi,
>
> It should be StartDate and EndDate (first letter caps). See 
> https://developers.google.com/adwords/api/docs/appendix/selectorfieldsfor a 
> more comprehensive list of supported selector fields.
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Friday, 21 September 2012 06:56:17 UTC+5:30, Yulong Yang wrote:
>>
>> Hi all,
>>
>> I am currently trying to fetch all fields listed 
>> here<https://developers.google.com/adwords/api/docs/reference/v201109/AdGroupAdService.AdStats>in
>>  AdStats for ad in sandbox. I am using python client library. All fields 
>> could be retrieved by following selector using ad groupd ad service except 
>> 'startDate' and 'endDate':
>> selector = {
>>         'fields': ['Id', 'AdGroupId', 'Impressions', 'startDate', 
>> 'endDate',
>>                     'Clicks', 'Cost', 'Ctr', 'AveragePosition', 
>> 'AverageCpc',
>>                     'AverageCpm', 'Conversions', 
>> 'ViewThroughConversions'],
>>         'predicates': [
>>           {
>>               'field': 'Id',
>>               'operator': 'EQUALS',
>>               'values': [ad_id]
>>           },
>>         ],
>>         'paging': {
>>           'startIndex': str(offset),
>>           'numberResults': str(self._PAGE_SIZE)
>>         }
>>       }
>>
>> If I add 'StartDate' and 'EndDate', it returns invalid field name error: 
>> adspygoogle.adwords.AdWordsErrors.AdWordsRequestError: 
>> [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'startDate', 
>> SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'endDate']
>>
>> Anyone know why it is wrong to fetch these 2 fields directly from ad 
>> group ad service? 
>>
>> btw I could get them 2 fields from campaign service; not sure if they are 
>> the same as that from ad group ad service.
>>
>> Any help appreciated. Thank you!
>>
>>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

Reply via email to