Hello assaf,

It should be easy to modify this example to avoid saving to a file. You can 
read the report directly by using the object returned by response.
getInputStream(), just read the report line by line instead of saving to a 
file.


-Danial, AdWords API Team.


On Monday, November 18, 2013 1:19:52 PM UTC+4, assaf wrote:
>
> Thank you Danial,
>
> I was wondering about an example for the specific implementation of HTTP 
> requests as you suggested for my needs (not actually writing the report 
> data to a file).
>
>
>
> On Monday, November 18, 2013 10:19:15 AM UTC+2, Danial Klimkin wrote:
>>
>> Hello assaf,
>>
>>
>> The Java client library has support for report downloads. Please see this 
>> example:
>>
>>   
>> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201309/reporting/DownloadCriteriaReport.java
>>
>>
>> -Danial, AdWords API Team.
>>
>>
>> On Saturday, November 16, 2013 10:49:22 PM UTC+4, assaf wrote:
>>>
>>> Hi,
>>>
>>> Can anyone post a link to such an example - using HTTP Request for 
>>> adwords report in  Java ?
>>>
>>> Thanks.
>>>
>>> On Thursday, November 14, 2013 11:06:14 AM UTC+2, Danial Klimkin wrote:
>>>>
>>>> Hello Bastian, assaf,
>>>>
>>>>
>>>> Bastian, please refer to the blog post mentioned above:
>>>>
>>>>   
>>>> googleadsdeveloper.blogspot.com/2013/10/adwords-api-how-to-migrate-from-stats.html
>>>>
>>>> assaf, you can get a report via HTTP request and then it's up to you 
>>>> whether you want to keep it in memory or save to a file. Most of our 
>>>> client 
>>>> libraries support both flows.
>>>>
>>>>
>>>> -Danial, AdWords API Team.
>>>>
>>>>
>>>> On Thursday, November 14, 2013 10:40:58 AM UTC+4, assaf wrote:
>>>>>
>>>>> *Can some one from adwords please confirm this:*
>>>>>
>>>>> In order to get Campaign/Adgroup/Ad/Keywords stats 
>>>>> (impressions/CPC/Cost etc.)  a report needs to be generated and written to
>>>>> your file system. If you have a web application that needs this info - 
>>>>> the file in the file system must be read for this???
>>>>>
>>>>> Thank you.
>>>>>
>>>>>
>>>>> On Tuesday, November 12, 2013 9:35:12 AM UTC+2, 
>>>>> b.ka...@mso-digital.dewrote:
>>>>>>
>>>>>> Hi there,
>>>>>>  
>>>>>> with AdWords API i want to get some stats about my campaigns like 
>>>>>> impressions, costs, clicks, ctr.
>>>>>> With older API versions like 201306 it was very easy to get these 
>>>>>> stats with the type "Stats".
>>>>>>  
>>>>>> In v201309 this type is deprecated. Instead the 
>>>>>> "ReportDefinitionService" should be used, to download the
>>>>>> desired report file in *.csv or *.xls.
>>>>>>  
>>>>>> If i want to show some stats in a web application it is very 
>>>>>> circumstantial to download such a report every time and parse it 
>>>>>> afterwards 
>>>>>> (every time
>>>>>> i refresh that page).
>>>>>>  
>>>>>> Is there an easier way to read out these stats? I don't know why 
>>>>>> things were made so complicated in v201309. Before it was very easy to 
>>>>>> include these stats
>>>>>> data in own web apps.
>>>>>>  
>>>>>> Best Regards
>>>>>> Bastian K.
>>>>>>
>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to