Hello, 

I have a problem download this report, see code below.


.Select('Impressions', 'Clicks', 'Cost')

                .From('CAMPAIGN_PERFORMANCE_REPORT')
                .Where('CampaignName').EqualTo(CAMPAIGN_NAME)
                .Build())




I successfully download the report as a CSV, but the Cost for some reason 
comes with the decimal point, so I see a massive number instead of a 3 
digits numbers.

For CSV I have this code 

output = io.StringIO()


reportDownloader.DownloadReportWithAwql(
        reportQuery,
        'CSV',
        output,

        client_customer_id=ID,
        skip_report_header=False,
        skip_column_header=False,
        skip_report_summary=False,
        include_zero_impressions=False
        )



I thought to download it as a CSVFOREXCEL , so I changed the format type 




    output = io.BytesIO()




reportDownloader.DownloadReportWithAwql(
        reportQuery,
        'CSVFOREXCEL',
        output,

        client_customer_id=ID,
        skip_report_header=False,
        skip_column_header=False,
        skip_report_summary=False,
        include_zero_impressions=False
        )


The problem is the data comes as bytes, and I tried also with io.StringIO() 
and it does not accep it....

Thank you!!!

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9f3edc0c-c489-4614-888f-1ef1cb14492c%40googlegroups.com.

Reply via email to