File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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("email@example.com", "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?
I agree. Here's the link:
subject: DataFeed Problem
Retrieve DataFeed API
iterate a special resultset
Issues with google analytics-- program wont compile
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