smspencer - I suspect that this is the same issue others have reported here in the forum around using the AccountPerformanceReport - you must request some performance data in order to get rows in the report (try adding Impressions). There is also an issue with the AccountPerformanceReport right now where it won't return data for zero-impressions. The suggested work-around is to use a CampaignPerformanceReport to retrieve this data right now, and you can get the AccountCurrencyCode with it also.
HTH - mm On Jan 12, 10:18 am, sms_adwords <smspencer.ker...@gmail.com> wrote: > Hello, > > I'm trying to migrate away from v13 AccountService calls and since v201101 > has to way to get timezone or currency codes without downloading and > parsing an entire report, here's what I'm trying to do: > > report_definition_service = > client.GetReportDefinitionService('https://adwords.google.com', 'v201101') > > # Construct operations and create report definition. > operations = [{ > 'operator': 'ADD', > 'operand': { > 'xsi_type': 'ReportDefinition', > 'reportName': 'Account performance report #%s' % > Utils.GetUniqueName(), > 'dateRangeType': 'ALL_TIME', > 'reportType': 'ACCOUNT_PERFORMANCE_REPORT', > 'downloadFormat': 'XML', > 'selector': { > 'fields': ['AccountCurrencyCode'], > } > } > }] > report_definitions = report_definition_service.Mutate(operations) > report = > report_definition_service.DownloadReport(report_definition['id']) > print report > > And here's the result: > > <?xml version='1.0' encoding='UTF-8' standalone='yes'?><report><report-name > name='Account performance report #960000015111212012'/><date-range > date='All Time'/><table><columns><column name='currency' > display='Currency'/></columns></table></report> > > I expect an actual currency code ('USD') to be returned - instead it just > responds with perfectly constructed but empty XML. Is my definition set up > incorrectly? Why can't I retrieve the currency code? > > Thanks in advance for any info! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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