need to know how to get all keywords from Google Keywords service. By default, i can download only 700 keywords. How to get all keywords from one query? Thanks.
Auto-Pagination through the API
Here is a quick overview on how to do auto-pagination with our API. You might also follow along by checking the fully working sample code in Python which you can use in your own applications.
The following sample query fetches the first 10,000 keywords by conversion rate for the month of February:
Notice how start-index is set to 1 and max-results is set to 10,000. When this query is issued to the API, the API will return up to 10,000 results. The API also returns the number rows found in Google Analytics in the openSearch:totalResult XML element
To get the total number of pages in this request, we can use the following python code:
Then getting the start-index for each additional page is trivial:
Thats it! If you want to start doing this today, or just see how it should work, we’ve included a fully working example. If you liked this, and want to see more example, let us know what we should do next in our comments.
Posted by Nick Mihailovski, Google Analytics API Team