A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Java in General
Joined: Jun 22, 2012
Sep 13, 2012 07:34:53
I am working with Java and Google Analytics APi I have a last question.
Could somebody answer me because I am strugglin for days.
I have this code(from Goole APi)
String queryTest = "https://www.googleapis.com/analytics/v2.4/data?ids=ga:64002582&dimensions=" + "ga:date&metrics=ga:visits&start-date=2012-08-02&end-date=2012-09-13"; URL ACCOUNT_URL = new URL(queryTest); DataQuery dataQuery = new DataQuery(ACCOUNT_URL); as.setUserCredentials("firstname.lastname@example.org", "frfrfr89"); DataFeed feed = as.getFeed(dataQuery, DataFeed.class);
I got my dataFeed but the values inside it are not from the account it's mainly empty
Any idea please?
Joined: Oct 13, 2005
Sep 13, 2012 08:20:03
Since it was I who caused you confusion about splitting threads
(sorry), I have tidied up your post and closed the other thread.
Afraid I don’t know about the accounts. What happens when you put
after the 3rd line? How have you validated those credentials?
It is sorta covered in the
JavaRanch Style Guide
subject: DataFeed Problem
Issues with google analytics-- program wont compile
Retrieve DataFeed API
iterate a special resultset
Problem with moving a file from one Directory to other Directory using FTPClient rename Method
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014