Skip to content

Attribute Error: DataSet object has no attribute 'aggregates' #3

@alsoicode

Description

@alsoicode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions