tran dinh  hung

tran dinh hung

  • NA
  • 2
  • 2.3k

Error when get list account from google analytics

Sep 9 2013 5:15 AM
Hi every body..

I want to get list  Account from google analytics but i don't can.. 

here is my code

// Configure GA API.
      AnalyticsService asv = new AnalyticsService("gaExportAPI_acctSample_v3.0");

      // Client Login Authorization.
      asv.setUserCredentials(CLIENT_USERNAME, CLIENT_PASS);

      // GA Account Feed query uri.

      AccountQuery query = new AccountQuery();

      // Send our request to the Analytics API and wait for the results to
      // come back.
      AccountFeed accountFeed = asv.Query(query);  (Error here)

Error: "Authentication failed: execution of request failed http:://google.com/analytics/feeds/accounts/default"


Help me, Please..



Answers (1)