prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

Event-based goals not showing up in list of goals for Google Analytics #605

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up a Google Analytics account and add 1 or more event-based goals
2.
    client = gdata.analytics.client.AnalyticsClient(source='MyCompany')
    client.auth_token = access_token
    goalList = []
    try:
        accountFeedData = client.GetAccountFeed(gdata.analytics.client.AccountFeedQuery())
    except:
        return goalList

    if accountFeedData:
        for accountEntry in accountFeedData.entry:
            if tableid == accountEntry.table_id.text and accountEntry.goal:
                for goal in accountEntry.goal:
                    goalList.append( (str(goal.number), goal.name) )

    return goalList

3. goalList does not contain the event-based goal, only the URL-based goals

What is the expected output? What do you see instead?

I expect goalList to contain all the goals.

What version of the product are you using?

gdata 2.0.13

Please provide any additional information below.

Original issue reported on code.google.com by delso...@gmail.com on 12 Mar 2012 at 11:58

GoogleCodeExporter commented 9 years ago
Tried again with the latest version of gdata (2.0.16) and it still doesn't work.

Original comment by delso...@gmail.com on 13 Mar 2012 at 12:05