Can't find table ID

6,714 views
Skip to first unread message

holsum

unread,
Mar 12, 2011, 10:09:31 AM3/12/11
to google-analytics...@googlegroups.com
The Google Analytics API is asking for my "table id" and I have no idea where that is... Can someone please help explain where I would locate the table id?

Thanks!

Nick

unread,
Mar 14, 2011, 1:20:17 AM3/14/11
to google-analytics...@googlegroups.com
You use the management API to get the accounts / web properties / profile Ids your login has access to.

The table ID is  "ga:" + the profile ID. (namespaced profile ID)


-Nick

holsum

unread,
Mar 15, 2011, 2:00:53 AM3/15/11
to google-analytics-api - GA Data Export API
Nick,
Thanks for the link that helps, and the profile ID looks to be the
same as the id that is in the URL string.

New problem is that when I test the sample Python Google Analytics
Data Export API Data Feed application I get the following error:

[code]
self.feed = my_client.GetDataFeed(data_query)
File "/Library/Python/2.6/site-packages/gdata/analytics/client.py",
line 77, in get_data_feed
**kwargs)
File "/Library/Python/2.6/site-packages/gdata/client.py", line 635,
in get_feed
**kwargs)
File "/Library/Python/2.6/site-packages/gdata/client.py", line 308,
in request
response, Unauthorized)
gdata.client.Unauthorized: Unauthorized - Server responded with: 401,
<errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</
domain><code>AuthenticationException</code><internalReason>User does
not have permission to access profile [765884]</internalReason></
error></errors>
[/code]

Any ideas why?

Thanks,

-Lary
> together:http://ga-api-javascript-samples.googlecode.com/svn/trunk/src/mgmt/ga...
>
> -Nick

Nick

unread,
Mar 15, 2011, 2:10:13 PM3/15/11
to google-analytics...@googlegroups.com
hmm....does this profile ID work with other auth mechanisms?
Can you try this other tool for the data export API: http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.html

If the profile does work, then it's probably an issue with how you are setting the header.

-Nick
Reply all
Reply to author
Forward
0 new messages