Huge api call

30 views
Skip to first unread message

Nikola Jordanovski

unread,
Jan 13, 2015, 10:15:35 AM1/13/15
to adwor...@googlegroups.com

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

Josh Radcliff (AdWords API Team)

unread,
Jan 13, 2015, 11:57:40 AM1/13/15
to adwor...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages