0

Trying to use Google Analytics Reporting API V3 sample with javascript and running into problems.

So when trying to use google's sample "hello_analytics_api_v3" the javascript breaks with the following errors.

"GET https://www.googleapis.com/discovery/v1/apis/analytics/v3/rpc?fields=methods%2F %2Fid&pp=0&key=**** 400 (Bad Request)" and then when clicking on run demo "Uncaught TypeError: Cannot read property 'management' of undefined".

It would seem that since the last update alot of people are getting this problem but was wondering if anyone has worked around a working sample.

Alex

Chris Morgan
91.6k28 gold badges217 silver badges220 bronze badges
asked Jul 11, 2013 at 19:56
3
  • Currently there is a lot of developers in the same boat.. Let’s stay politically correct and say that the current state of the Analytics Reporting API is "Un-google like". Sure it’s only in beta but a complex api with no new samples to reflect major updates, un-clear documentation and almost no feedback from the team creates a mess. Like many others I had a working sample prior to 3.0.103 and still trying to migrate. Probably not the answer you were looking for but I would keep an eye on the analytic reporting group the google guys will eventually put something out. Commented Jul 12, 2013 at 13:28
  • Thanks John, can we currently use a working sample that is using V2 untill we can make a working sample with V3? Commented Jul 15, 2013 at 17:13
  • The sample code works for me: code.google.com/p/google-api-javascript-client/source/browse/… Commented Jul 16, 2013 at 1:44

1 Answer 1

1

its your api key guys, you need to create a new key under "Public API access" section and use the key provided as your apiKey. Don't use the Client Secret as the apiKey.

answered Apr 8, 2014 at 10:59
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.