Reputation: 625
My goal is to query Analytics, and if there is any new link created last month to some operations and store it in DB. And the problem is that i didn't find a way to query api just for new links in last month! I can compare it to DB query result, but i think it will slow down application, because result from db will have thousands of links, and api query also, comparing them will be inefficient resource usage!
Upvotes: 1
Views: 42
Reputation: 117321
You cant request only new links from the Google Analytics API. I don't see a filter helping here either because it will end up being to big.
My suggestion is you select everything out of Google Analytics store it in your DB. Then at the end of the month you download all pages for that month into your DB. You will be able to search them there and find your new links.
Don't worry about inefficient resource usage. I download millions of rows for customers every month in order to analyze there data further. It's what the API is for.
Upvotes: 1