How can I get account performance reports using python?

71 views
Skip to first unread message

cam...@dintdigital.com

unread,
May 25, 2017, 11:09:38 PM5/25/17
to AdWords API Forum
I don't want to download the report. I just want to get the cost and the ctr in the account I manage. How can I do this with python?

Rahat

unread,
May 31, 2017, 4:57:37 PM5/31/17
to AdWords API Forum
Hi, I don't see any way to achieve your goal without fetching Account Performance Report using Python. I prefer to fetch report as stream with selector and parse my desired result. Parsing your desired result won't be difficult once you print the report as string. 

Check the source code below
https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201702/reporting/download_criteria_report_as_stream_with_selector.py
You need to change
"reportType" with "ACCOUNT_PERFORMANCE_REPORT"
and
"fields" with ["Cost", "Ctr"]
Reply all
Reply to author
Forward
0 new messages