Re: Huge api call

2015-01-13 Thread Josh Radcliff (AdWords API Team)
Hi Nick,

One option you may want to consider is to use Structure Reports 
. 
This approach uses the much lighter (non-SOAP) reporting service to get 
structural data for your account, such as campaign IDs, ad groups IDs, etc. 
You could then cache that data on your side (either in memory or in a local 
database) and use the IDs for subsequent SOAP calls.

Cheers,
Josh, AdWords API Team

On Tuesday, January 13, 2015 at 10:15:35 AM UTC-5, Nikola Jordanovski wrote:
>
>
> So i am having a little fun with the API , making api calls but it takes 
> too long,
> of course that is because on every refresh the getCampaings() call is 
> making another api call , and ergo downloads the data.
>
> Now my question is , is there any way to cache one api call or good 
> practice is to do something else?
>
> Sorry for maybe a stupid question, but i am in need of a solution so i can 
> learn good developer practice :)
>
> Thanks
> Nick
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d830eec9-0850-47f5-a223-f7bd96de65a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Huge api call

2015-01-13 Thread Nikola Jordanovski

So i am having a little fun with the API , making api calls but it takes 
too long,
of course that is because on every refresh the getCampaings() call is 
making another api call , and ergo downloads the data.

Now my question is , is there any way to cache one api call or good 
practice is to do something else?

Sorry for maybe a stupid question, but i am in need of a solution so i can 
learn good developer practice :)

Thanks
Nick

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/13c57ebd-c55e-4431-85a6-b7262b9b02ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.