If Ray's content length suggestion works you could even perform an http HEAD
method request which should get you just the header so you could decide how to
handle the report content without dropping the stream and starting over if it
is too big to hold in memory.
--
--
Kalyan,
Unfortunately there is no way to do that. However, you may be able to
close your stream in case the content length is longer than you expected...
It's recommended that you download predicable sizes by limiting your
request.
Thanks!
Ray
On Thursday, March 6, 2014 1:21:00 AM UTC-5,
Thanks Ray !!
Let say my report type is XML. Is it possible to get the size of .xml file
before download.
Will try the content length and post the status back.
Thanks,
Kalyan
On Wednesday, 5 March 2014 01:09:11 UTC+5:30, Ray Tsang (AdWords API Team)
wrote:
Kalyan,
Do you mean the
Kalyan,
Do you mean the content length in the HTTP header? You could give that a
try.
Thanks,
Ray
On Friday, February 28, 2014 4:57:23 AM UTC-5, Kalyan Srinivas wrote:
Hi all,
Is this possible to get Adwords report size before we attempt a download ?
(like metadata)
Thanks,
Kalyan
Hi all,
Is this possible to get Adwords report size before we attempt a download ?
(like metadata)
Thanks,
Kalyan
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/