Hi Zhaoyu, Unfortunately, AdWords API report does not support customized download format. With this said, your concerns seem to be more related to the Python library and your parser code. You may open your concern to the Python support team as they may be more equipped in answering your concerns.
Regards, Dannison AdWords API Team On Saturday, August 11, 2018 at 4:37:21 AM UTC+8, zhaoyu.w...@shopee.com wrote: > > Hello, > > I was trying to download report and save it as a data frame, using the > *report_downloader.DownloadReport. > *It do help me get the data and I can save it to a csv. However when I > try to read the csv it give me the error as follow: > > Traceback (most recent call last): > File "C:\Users\Desktop\new\download.py", line 40, in <module> > main(adwords_client) > File "C:\Users\Desktop\new\download.py", line 28, in main > df = pd.read_csv('adwtemp.csv', index_col=None, header=1) > File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 709, in > parser_f > return _read(filepath_or_buffer, kwds) > File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 449, in > _read > parser = TextFileReader(filepath_or_buffer, **kwds) > File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 818, in > __init__ > self._make_engine(self.engine) > File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1049, in > _make_engine > self._engine = CParserWrapper(self.f, **self.options) > File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1695, in > __init__ > self._reader = parsers.TextReader(src, **kwds) > File "pandas\_libs\parsers.pyx", line 565, in > pandas._libs.parsers.TextReader.__cinit__ > pandas.errors.EmptyDataError: No columns to parse from file > > Is there any way I can get the data in the format of data frame? Thanks in > advance. > > Plus, I tried to use *report_downloader.DownloadReportAsStream, *but > stacked at the same place when I try to convert the instance to a data > frame. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. 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/1a20e0fa-575d-43f0-93a3-e984b32e704c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.