get
public Analytics.Data.Get get(java.lang.String ids,
java.lang.String startDate,
java.lang.String endDate,
java.lang.String metrics)
throws java.io.IOException
Returns Analytics report data for a view (profile).
Create a request for the method "data.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 report data. Table ID is of the form ga:XXXX, where XXXX is the
Analytics view (profile) ID.startDate - Start date for fetching report data. All requests should specify a start date formatted as YYYY-MM-
DD.endDate - End date for fetching report data. All requests should specify an end date formatted as YYYY-MM-DD.metrics - A comma-separated list of Analytics metrics. E.g., 'ga:sessions,ga:pageviews'. At least one metric
must be specified to retrieve a valid Analytics report.
- Returns:
- the request
- Throws:
java.io.IOException