target.apidocs.com.google.api.services.analytics.Analytics.Data.Ga.html Maven / Gradle / Ivy
Analytics.Data.Ga (Google Analytics API v3-rev20190807-1.31.0)
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.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Analytics.Data.Ga.Get
-
Constructor Summary
Constructors
Constructor and Description
Ga()
-
Method Summary
All Methods Instance Methods Concrete Methods
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).
-
-
Method Detail
-
get
public Analytics.Data.Ga.Get get(String ids,
String startDate,
String endDate,
String metrics)
throws 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:
IOException
Copyright © 2011–2020 Google. All rights reserved.