I am using the python client API Google API to load some data from Google Analytics. I basically copied one of my exams and modified it to do exactly what I need.
I took this piece of code from examples:
request = service.data().ga().get( ids=ids, start_date=str(start_date), end_date=str(end_date), dimensions=','.join(dimensions), filters=filters, sort="ga:date", metrics=','.join(metrics))
Then add it to the batch object and execute it as soon as it collects 10 queries. This all works well, but the problem is that some of these queries return "nextLink". Now I could just create a new query object (with the code above) with a different starting index, but is it not the best?
Is there a way to simply parse nextLink in a new request object?
source share