public class Analytics.Data.Ga.Get extends AnalyticsRequest<GaData>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Get(String ids,
String startDate,
String endDate,
String metrics)
Returns Analytics data for a view (profile).
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getDimensions()
A comma-separated list of Analytics dimensions.
|
String |
getEndDate()
End date for fetching Analytics data.
|
String |
getFilters()
A comma-separated list of dimension or metric filters to be applied to Analytics data.
|
String |
getIds()
Unique table ID for retrieving Analytics data.
|
Boolean |
getIncludeEmptyRows()
The response will include empty rows if this parameter is set to true, the default is true
|
Integer |
getMaxResults()
The maximum number of entries to include in this feed.
|
String |
getMetrics()
A comma-separated list of Analytics metrics.
|
String |
getOutput()
The selected format for the response.
|
String |
getSamplingLevel()
The desired sampling level.
|
String |
getSegment()
An Analytics segment to be applied to data.
|
String |
getSort()
A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
|
String |
getStartDate()
Start date for fetching Analytics data.
|
Integer |
getStartIndex()
An index of the first entity to retrieve.
|
Analytics.Data.Ga.Get |
set(String parameterName,
Object value) |
Analytics.Data.Ga.Get |
setAlt(String alt)
Data format for the response.
|
Analytics.Data.Ga.Get |
setDimensions(String dimensions)
A comma-separated list of Analytics dimensions.
|
Analytics.Data.Ga.Get |
setEndDate(String endDate)
End date for fetching Analytics data.
|
Analytics.Data.Ga.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Analytics.Data.Ga.Get |
setFilters(String filters)
A comma-separated list of dimension or metric filters to be applied to Analytics data.
|
Analytics.Data.Ga.Get |
setIds(String ids)
Unique table ID for retrieving Analytics data.
|
Analytics.Data.Ga.Get |
setIncludeEmptyRows(Boolean includeEmptyRows)
The response will include empty rows if this parameter is set to true, the default is
true
|
Analytics.Data.Ga.Get |
setKey(String key)
API key.
|
Analytics.Data.Ga.Get |
setMaxResults(Integer maxResults)
The maximum number of entries to include in this feed.
|
Analytics.Data.Ga.Get |
setMetrics(String metrics)
A comma-separated list of Analytics metrics.
|
Analytics.Data.Ga.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Analytics.Data.Ga.Get |
setOutput(String output)
The selected format for the response.
|
Analytics.Data.Ga.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Analytics.Data.Ga.Get |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Analytics.Data.Ga.Get |
setSamplingLevel(String samplingLevel)
The desired sampling level.
|
Analytics.Data.Ga.Get |
setSegment(String segment)
An Analytics segment to be applied to data.
|
Analytics.Data.Ga.Get |
setSort(String sort)
A comma-separated list of dimensions or metrics that determine the sort order for
Analytics data.
|
Analytics.Data.Ga.Get |
setStartDate(String startDate)
Start date for fetching Analytics data.
|
Analytics.Data.Ga.Get |
setStartIndex(Integer startIndex)
An index of the first entity to retrieve.
|
Analytics.Data.Ga.Get |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Get(String ids, String startDate, String endDate, String metrics)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Analytics.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
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.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<GaData>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<GaData>IOExceptionpublic Analytics.Data.Ga.Get setAlt(String alt)
AnalyticsRequestsetAlt in class AnalyticsRequest<GaData>public Analytics.Data.Ga.Get setFields(String fields)
AnalyticsRequestsetFields in class AnalyticsRequest<GaData>public Analytics.Data.Ga.Get setKey(String key)
AnalyticsRequestsetKey in class AnalyticsRequest<GaData>public Analytics.Data.Ga.Get setOauthToken(String oauthToken)
AnalyticsRequestsetOauthToken in class AnalyticsRequest<GaData>public Analytics.Data.Ga.Get setPrettyPrint(Boolean prettyPrint)
AnalyticsRequestsetPrettyPrint in class AnalyticsRequest<GaData>public Analytics.Data.Ga.Get setQuotaUser(String quotaUser)
AnalyticsRequestsetQuotaUser in class AnalyticsRequest<GaData>public Analytics.Data.Ga.Get setUserIp(String userIp)
AnalyticsRequestsetUserIp in class AnalyticsRequest<GaData>public String getIds()
public Analytics.Data.Ga.Get setIds(String ids)
public String getStartDate()
public Analytics.Data.Ga.Get setStartDate(String startDate)
public String getEndDate()
public Analytics.Data.Ga.Get setEndDate(String endDate)
public String getMetrics()
public Analytics.Data.Ga.Get setMetrics(String metrics)
public String getDimensions()
public Analytics.Data.Ga.Get setDimensions(String dimensions)
public String getFilters()
public Analytics.Data.Ga.Get setFilters(String filters)
public Boolean getIncludeEmptyRows()
public Analytics.Data.Ga.Get setIncludeEmptyRows(Boolean includeEmptyRows)
public Integer getMaxResults()
public Analytics.Data.Ga.Get setMaxResults(Integer maxResults)
public String getOutput()
public Analytics.Data.Ga.Get setOutput(String output)
public String getSamplingLevel()
public Analytics.Data.Ga.Get setSamplingLevel(String samplingLevel)
public String getSegment()
public Analytics.Data.Ga.Get setSegment(String segment)
public String getSort()
public Analytics.Data.Ga.Get setSort(String sort)
public Integer getStartIndex()
public Analytics.Data.Ga.Get setStartIndex(Integer startIndex)
public Analytics.Data.Ga.Get set(String parameterName, Object value)
set in class AnalyticsRequest<GaData>Copyright © 2011–2022 Google. All rights reserved.