Hi -- I've seen this problem resoved for PHP, but the Python adspygoogle package isn't one-for-one, so I'm asking this question. I'm trying to get custom dates for an account performance report. The below code creates the following error: "adspygoogle.common.Errors.ValidationError: Field 'startDate' is not in type 'reportDefinition'". Any ideas on how I should structure my request so that adspygoogle can read it properly?
client = AdWordsClient(path=os.path.join('..', '..', '..', '..', '..')) # Specify where to download the file here. path = 'perf_report_download.csv' report_downloader = client.GetReportDownloader('https://adwords.google.com', 'v201209') # Create report definition. report = { 'reportName': 'Last 7 days ACCOUNT_PERFORMANCE_REPORT', 'dateRangeType': 'CUSTOM_DATE', 'startDate': '20100922', 'endDate': '20130205', 'reportType': 'ACCOUNT_PERFORMANCE_REPORT', 'downloadFormat': 'CSV', 'selector': { 'fields': ['AdNetworkType1', 'Date','HourOfDay','Impressions', 'Cost', 'Clicks', 'AverageCpc', 'AverageCpm'] }, # Enable to get rows with zero impressions. 'includeZeroImpressions': 'true' } file_path=report_downloader.DownloadReport(report, file_path=path) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.