Hi,
I want to pull the data from Adwords API for some date range. Getting the
following error.
Error Message:
File "C:\Python27\lib\site-packages\suds\mx\core.py", line 72, in append
self.appender.append(parent, content)
File "C:\Python27\lib\site-packages\suds\mx\appender.py", line 88, in
append
appender.append(parent, content)
File "C:\Python27\lib\site-packages\googleads\util.py", line 93, in
PatchedAppend
suds.mx.appender.Appender.append(self, child, cont)
File "C:\Python27\lib\site-packages\suds\mx\appender.py", line 168, in
append
self.marshaller.append(parent, content)
File "C:\Python27\lib\site-packages\suds\mx\core.py", line 71, in append
if self.start(content):
File "C:\Python27\lib\site-packages\suds\mx\literal.py", line 86, in start
raise TypeNotFound(content.tag)
suds.TypeNotFound: Type not found: 'dateRange'
Here is the complete code:
def download_Performance_Criteria_Report(client):
rep_downloader = client.GetReportDownloader(version='v201710')
report = {
'reportName' : 'CAMPAIGN_PERFORMANCE_REPORT',
'dateRangeType' :'CUSTOM_DATE',
'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': ['CampaignId','CampaignName','ExternalCustomerId',
'Impressions','Clicks','Cost','Date']
},
'dateRange': { 'min' : '20180101',
'max' : '20180105'
}
}
rep_downloader.DownloadReport(report,sys.stdout,skip_report_header=False
,skip_column_header=False,skip_report_summary=False)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/3f9e31c0-c213-4105-bfb0-5d88caaba5b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.