Very new to using API's and Python in general but I was able to generate an
AD Performance report using the following:
report_query = (adwords.ReportQueryBuilder()
.Select('CampaignName', 'AdGroupName', 'HeadlinePart1',
'HeadlinePart2', 'Description', 'Clicks','Cost','AverageCpc','Labels')
.From('AD_PERFORMANCE_REPORT')
.Where('CampaignStatus').EqualTo('ENABLED')
.Where('Clicks').GreaterThan('0')
.During('YESTERDAY')
.Build())
report_downloader.DownloadReportWithAwql(
report_query, 'CSV', sys.stdout, skip_report_header=False,
skip_column_header=False, skip_report_summary=False,
include_zero_impressions=True)
However, the call prints the output within the cmd prompt and closes. This
is probably a very basic question but how would i update the report
download section to produce a CSV file? Would i need to pass the
information to a Pandas DataFrame and write to excel?
Thanks in advance.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/234fb94a-a78f-4d42-9804-531d90380147%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.