get
public Analytics.Data.Ga.Get get(java.lang.String ids,
java.lang.String startDate,
java.lang.String endDate,
java.lang.String metrics)
throws java.io.IOException
Returns Analytics data for a view (profile).
Create a request for the method "ga.get".
This request holds the parameters needed by 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 view (profile) ID.startDate - Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD,
or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is
7daysAgo.endDate - End date for fetching Analytics data. Request can should specify an end date formatted as YYYY-MM-
DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is
yesterday.metrics - A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric
must be specified.
- Returns:
- the request
- Throws:
java.io.IOException