Google Analytics API v3 (revision 41)
com.google.api.services.analytics
Class Analytics.Data.Ga
java.lang.Object
com.google.api.services.analytics.Analytics.Data.Ga
- Enclosing class:
- Analytics.Data
public class Analytics.Data.Ga
- extends Object
The "ga" collection of methods.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Analytics.Data.Ga
public Analytics.Data.Ga()
get
public Analytics.Data.Ga.Get get(String ids,
String startDate,
String endDate,
String metrics)
throws IOException
- Returns Analytics data for a profile.
Create a request for the method "ga.get".
This request holds the parameters needed by the the analytics server. After setting any optional
parameters, call the
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
- Parameters:
ids - Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the
Analytics profile ID.startDate - Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-
MM-DD.endDate - End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-
DD.metrics - A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric
must be specified.
- Returns:
- the request
- Throws:
IOException