python-googleanalytics icon indicating copy to clipboard operation
python-googleanalytics copied to clipboard

Attribute Error: DataSet object has no attribute 'aggregates'

Open alsoicode opened this issue 15 years ago • 0 comments

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

alsoicode avatar Jun 07 '10 18:06 alsoicode