public class Analytics.Data.Ga extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Analytics.Data.Ga.Get |
| Constructor and Description |
|---|
Ga() |
| Modifier and Type | Method and Description |
|---|---|
Analytics.Data.Ga.Get |
get(String ids,
String startDate,
String endDate,
String metrics)
Returns Analytics data for a view (profile).
|
public Analytics.Data.Ga.Get get(String ids, String startDate, String endDate, String metrics) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.IOExceptionCopyright © 2011–2022 Google. All rights reserved.