Google Analytics API example JAVA -


Google Analytics has posted an example Java program on its blog which is trying to remove data and output in CSV using analytics API. To compile this program to run it in eclipse but problems are running

I have changed the variables of my own here:

  / / user configuration personal static final string USERNAME = "INSERT_YOUR_GOOGLE_ACCOUNT_LOGIN"; Private Stable Last String PASSWORD = "INSERT_YOUR_GOOGLE_ACCOUNT_PASSWORD"; Private static final string TABLE_ID = "INSERT_YOUR_TABLE_ID";  

I'm unsure of the next step, when I try to run the program, I get this error message:

  "main" java thread Exception in .lang.Error: Unsolved compilation problem:  

update on MainDemo.main (main.java:51):

OK, it says Google When using the Analytics API, I need to reference some .jar files:

gdata-core-1.0.jar gdata-client-meta-1.0.jar gdata-client-1.0.jar gdata- Analytics-meta-2.0.jar gdata-analytics-2.0.jpg google-collect-1.0-rc1.jar jsr305.jar

I I have put in but still not working, I get the following error message:

  Thread "main" exception in Java. Error: Unsolved compilation problems: the results can not be sorted in a way that type the data overtime overtime from the type of getData (DataQuery) references the result of the missing type  

Is your directory structure correct? It should look like an example URL The file should be './example/MainDemo.java' and it should be '.' Compile with


Comments