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