python-googleanalytics
python-googleanalytics copied to clipboard
Attribute Error: DataSet object has no attribute 'aggregates'
Hello,
Here's a sample query I'm running:
today = datetime.today() start_date = (today - timedelta(days=2)) data = account.get_data(start_date=start_date, end_date=today, dimensions=['pageTitle', 'pagePath'], metrics=['pageviews', 'timeOnPage', 'entrances'], max_results=1)
When I: print data.aggregates, I get: Attribute Error: DataSet object has no attribute 'aggregates' Can you please point out what I'm doing wrong?
TIA, Brandon