Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1112703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:45:03+00:00 2026-05-17T02:45:03+00:00

Google analytics posted on their blog about an example Java program to extract data

  • 0

Google analytics posted on their blog about an example Java program to extract data and output to a CSV using the analytics api, im trying to compile this program to run it in eclipse but running into problems

http://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/v2/DataOverTime/src/example/MainDemo.java

i have changed out the variables in here to my own:

// User configurations.
  private static final String USERNAME = "INSERT_YOUR_GOOGLE_ACCOUNT_LOGIN";
  private static final String PASSWORD = "INSERT_YOUR_GOOGLE_ACCOUNT_PASSWORD";
  private static final String TABLE_ID = "INSERT_YOUR_TABLE_ID";

i’m unsure on the next step, when i try to run the program i get this error message:

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

    at MainDemo.main(main.java:51)

update:

ok, its says when using the google 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.jar
google-collect-1.0-rc1.jar
jsr305.jar

i put these in but its still not working i get the following error message:

Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
    Results cannot be resolved to a type
    The method getData(DataQuery) from the type DataOverTime refers to the missing type Results
  • 1 1 Answer
  • 5 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:45:04+00:00Added an answer on May 17, 2026 at 2:45 am

    I got the answer in this forum: http://code.google.com/apis/analytics/groups/exportApiGroup.html?place=topic%2Fgoogle-analytics-data-export-api%2FwpDmftjYFio%2Fdiscussion

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following the documentation at Google Analytics Data API - Java and am getting
I'm using a Google Analytics API Class in PHP made by Doug Tan to
Using Google Analytics with my Web Pages / Java Script application I just wonder
I cannot use Google analytics because of their limitations on the API. They will
Using the Google Analytics API I would like to display the domain associated with
Google announced the Analytics Data Export API some days ago, thereby making it much
In Google Analytics I set a Goal that is a simple URL Destination using
I am using google analytics event tracking to track 2 Facebook canvas application. (they
Does anyone know how Google Analytics exports their PDFs? They don't seem to make
I'm using EasyTracker google analytics library and my app have multiple activities. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.