Here is the complete code, please let me know about the problem?
def update_click_performance_report(account_name, client):
report_downloader = client.GetReportDownloader(version='v201609')
# Create report definition.
report = {
'reportName': 'CLICK_PERFORMANCE_REPORT',
'dateRangeType': 'CUSTOM_DATE',
'reportType': 'CLICK_PERFORMANCE_REPORT',
'downloadFormat': 'CSV',
'selector': {
'fields': ['GclId', 'AccountDescriptiveName', 'CampaignId',
'CampaignName',
'AdGroupId', 'AdGroupName', 'CreativeId',
'CriteriaId',
'KeywordMatchType', 'AdNetworkType1',
'AdNetworkType2', 'Date',
'Device', 'Clicks', 'ClickType', 'Page', 'Slot',
'UserListId',
'LopCityCriteriaId', 'LopCountryCriteriaId',
'LopMostSpecificTargetId'],
'dateRange' : {'min':'20170625','max':'20170625'}
}
}
# Write report to a file
if not os.path.exists('downloads'):
os.makedirs('downloads')
file = open('downloads/reports_click_performance_report.csv', 'wb')
report_downloader.DownloadReport(
report,
file,
skip_report_header=True,
skip_column_header=True,
skip_report_summary=True,
include_zero_impressions=False)
file.close()
On Thursday, June 29, 2017 at 4:52:41 PM UTC+2, Shwetha Vastrad (AdWords
API Team) wrote:
>
> Hi Tushar,
>
> I was not able to find any errors in the report definition. Since this is
> a syntax error and not an API error, please send me the complete code so I
> can take a look.
>
> Thanks,
> Shwetha, AdWords API Team.
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/81e8fbef-08d1-421a-8e76-a844b13241bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.