alooi14 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 1 forks source link

cannot connect to Google Analytics API #657

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

version 1.6.0.0
Google.GData.Extensions.dll
Google.GData.Client.dll
Google.GData.Analytics.dll

Issue summary:

I am using some query to get connected to Google Analytics API and read 
customer report data. it has been working for couple of years. but since last 
week, the query i passed cannot return any data and error out for me. can 
someone help me thank you!
 following is one example of my query. 
 String baseUrl = "https://www.google.com/analytics/feeds/data";
 DataQuery query = new DataQuery(baseUrl);

query= 
https://www.google.com/analytics/feeds/data?max-results=20000&dimensions=ga:sour
ce,ga:medium,ga:keyword,ga:campaign&end-date=2015-06-02&filters=ga:source==EMAIL
,ga:source==email;ga:medium==ED,ga:medium==ed&ids=ga:31657&metrics=ga:visits,ga:
transactions,ga:transactionRevenue&start-date=2014-06-01
 asv.Query(query);

Attached is the error meeage i got. thank you!!

Original issue reported on code.google.com by beaconfu...@gmail.com on 3 Jun 2015 at 4:28

Attachments:

GoogleCodeExporter commented 8 years ago
It looks like application your are using to query the API is using Cleint Login:
https://developers.google.com/identity/protocols/AuthForInstalledApps
Which has been officially deprecated since April 20, 2012 and is now no longer 
available. Requests to ClientLogin will fail with a HTTP 404 response. We 
encourage you to migrate to OAuth 2.0 as soon as possible.

First I would take a look at the various OAuth 2.0 Senarios and decide which 
one would be best for your application:
https://developers.google.com/identity/protocols/OAuth2#scenarios

Then I would encourage you to take a look at the recently updated Hello 
Analytics API to get an application up and running in your desired language:
https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/s
ervice-java

Original comment by mcoh...@google.com on 3 Jun 2015 at 4:42