Re: Best Practices for working with reports?

2018-05-09 Thread Peter Bowen
Hi.

I think you're doing it the right way by separating the scripts. That's 
good programming practice.

I don't know how good python is at freeing memory but if you're handling a 
really big report it might be better to keep the get report and process 
report functions separate as you have them to avoid timeout or memory out 
errors.

On Tuesday, 8 May 2018 21:37:18 UTC+1, Nellle Rickchards wrote:
>
> Hello,
>
> I'm working with GetReportDownloader and following some of the examples 
> Google has provided (
> https://developers.google.com/adwords/api/docs/samples/python/reporting#download-criteria-report-as-a-stream-with-awql
> ).
>
> Currently I do this:
>
> Sctipt 1:
> - Download adwords report to a CSV file
>
> Script 2:
> - Open CSV file as a pandas dataframe
> - Does some calculations/analysis using the dataframe
>
> Is this the right way of doing it? Is it possible to save the report 
> directly to a pandas dataframe or other python datatype instead of 
> downloading it to my local system? 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d36b4cd9-abec-4970-a98a-789cc5b5fe71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices for working with reports?

2018-05-08 Thread 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Nellle,

I believe the steps you are doing in downloading the report is correct. 
However, I am not familiar with pandas dataframe as we do not support other 
third party application integration with the AdWords API. Currently, these 
are the supported download formats 

 that 
you could use in downloading reports. Also, you could use the 
*getAsString() *method to retrieve the data as string representation then 
you could parse the data. After parsing the data, you could then create a 
method on your end that could save those data in your pandas dataframe.

Thanks and regards,
Luis
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fd82b6e0-2c04-4e95-a88b-85d765b307ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.