public class YouTubeAnalytics.Reports.Query extends YouTubeAnalyticsRequest<QueryResponse>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Query()
Retrieve your YouTube Analytics reports.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getCurrency()
The currency to which financial metrics should be converted.
|
String |
getDimensions()
A comma-separated list of YouTube Analytics dimensions, such as `views` or `ageGroup,gender`.
|
String |
getEndDate()
The end date for fetching YouTube Analytics data.
|
String |
getFilters()
A list of filters that should be applied when retrieving YouTube Analytics data.
|
String |
getIds()
Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics
data.
|
Boolean |
getIncludeHistoricalChannelData()
If set to true historical data (i.e.
|
Integer |
getMaxResults()
The maximum number of rows to include in the response.", minValue: 1
|
String |
getMetrics()
A comma-separated list of YouTube Analytics metrics, such as `views` or `likes,dislikes`.
|
String |
getSort()
A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics
data.
|
String |
getStartDate()
The start date for fetching YouTube Analytics data.
|
Integer |
getStartIndex()
An index of the first entity to retrieve.
|
YouTubeAnalytics.Reports.Query |
set(String parameterName,
Object value) |
YouTubeAnalytics.Reports.Query |
set$Xgafv(String $Xgafv)
V1 error format.
|
YouTubeAnalytics.Reports.Query |
setAccessToken(String accessToken)
OAuth access token.
|
YouTubeAnalytics.Reports.Query |
setAlt(String alt)
Data format for response.
|
YouTubeAnalytics.Reports.Query |
setCallback(String callback)
JSONP
|
YouTubeAnalytics.Reports.Query |
setCurrency(String currency)
The currency to which financial metrics should be converted.
|
YouTubeAnalytics.Reports.Query |
setDimensions(String dimensions)
A comma-separated list of YouTube Analytics dimensions, such as `views` or
`ageGroup,gender`.
|
YouTubeAnalytics.Reports.Query |
setEndDate(String endDate)
The end date for fetching YouTube Analytics data.
|
YouTubeAnalytics.Reports.Query |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTubeAnalytics.Reports.Query |
setFilters(String filters)
A list of filters that should be applied when retrieving YouTube Analytics data.
|
YouTubeAnalytics.Reports.Query |
setIds(String ids)
Identifies the YouTube channel or content owner for which you are retrieving YouTube
Analytics data.
|
YouTubeAnalytics.Reports.Query |
setIncludeHistoricalChannelData(Boolean includeHistoricalChannelData)
If set to true historical data (i.e.
|
YouTubeAnalytics.Reports.Query |
setKey(String key)
API key.
|
YouTubeAnalytics.Reports.Query |
setMaxResults(Integer maxResults)
The maximum number of rows to include in the response.", minValue: 1
|
YouTubeAnalytics.Reports.Query |
setMetrics(String metrics)
A comma-separated list of YouTube Analytics metrics, such as `views` or `likes,dislikes`.
|
YouTubeAnalytics.Reports.Query |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTubeAnalytics.Reports.Query |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTubeAnalytics.Reports.Query |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTubeAnalytics.Reports.Query |
setSort(String sort)
A comma-separated list of dimensions or metrics that determine the sort order for YouTube
Analytics data.
|
YouTubeAnalytics.Reports.Query |
setStartDate(String startDate)
The start date for fetching YouTube Analytics data.
|
YouTubeAnalytics.Reports.Query |
setStartIndex(Integer startIndex)
An index of the first entity to retrieve.
|
YouTubeAnalytics.Reports.Query |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
YouTubeAnalytics.Reports.Query |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, 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 Query()
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
YouTubeAnalytics.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<QueryResponse>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<QueryResponse>IOExceptionpublic YouTubeAnalytics.Reports.Query set$Xgafv(String $Xgafv)
YouTubeAnalyticsRequestset$Xgafv in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setAccessToken(String accessToken)
YouTubeAnalyticsRequestsetAccessToken in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setAlt(String alt)
YouTubeAnalyticsRequestsetAlt in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setCallback(String callback)
YouTubeAnalyticsRequestsetCallback in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setFields(String fields)
YouTubeAnalyticsRequestsetFields in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setKey(String key)
YouTubeAnalyticsRequestsetKey in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setOauthToken(String oauthToken)
YouTubeAnalyticsRequestsetOauthToken in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setPrettyPrint(Boolean prettyPrint)
YouTubeAnalyticsRequestsetPrettyPrint in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setQuotaUser(String quotaUser)
YouTubeAnalyticsRequestsetQuotaUser in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setUploadType(String uploadType)
YouTubeAnalyticsRequestsetUploadType in class YouTubeAnalyticsRequest<QueryResponse>public YouTubeAnalytics.Reports.Query setUploadProtocol(String uploadProtocol)
YouTubeAnalyticsRequestsetUploadProtocol in class YouTubeAnalyticsRequest<QueryResponse>public String getCurrency()
public YouTubeAnalytics.Reports.Query setCurrency(String currency)
public String getDimensions()
public YouTubeAnalytics.Reports.Query setDimensions(String dimensions)
public String getEndDate()
public YouTubeAnalytics.Reports.Query setEndDate(String endDate)
public String getFilters()
public YouTubeAnalytics.Reports.Query setFilters(String filters)
public String getIds()
public YouTubeAnalytics.Reports.Query setIds(String ids)
public Boolean getIncludeHistoricalChannelData()
public YouTubeAnalytics.Reports.Query setIncludeHistoricalChannelData(Boolean includeHistoricalChannelData)
public Integer getMaxResults()
public YouTubeAnalytics.Reports.Query setMaxResults(Integer maxResults)
public String getMetrics()
public YouTubeAnalytics.Reports.Query setMetrics(String metrics)
public String getSort()
public YouTubeAnalytics.Reports.Query setSort(String sort)
public String getStartDate()
public YouTubeAnalytics.Reports.Query setStartDate(String startDate)
public Integer getStartIndex()
public YouTubeAnalytics.Reports.Query setStartIndex(Integer startIndex)
public YouTubeAnalytics.Reports.Query set(String parameterName, Object value)
set in class YouTubeAnalyticsRequest<QueryResponse>Copyright © 2011–2019 Google. All rights reserved.