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 [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