google-analytics
google-analytics copied to clipboard
How to iterate over query results?
I'm trying to get a list of the top landing pages as described here but this documentation is incomplete. All the examples just return a query object but that doesn't actually contain any result data.
There's a brief mention on the Querying page that you need to call query.get() to actually retrieve results, or as the API calls it "generating the report". However, I can't find any documentation explaining what to do with this report object. Printing it shows:
<googleanalytics.query.Report object: Entrances, Bounces by Date,Landing Page
but attempting to iterate over it throws a NotImplementedError.
How do I get a list of all the top landing page URLs?