public class YouTubeAnalytics.Reports.Query extends YouTubeAnalyticsRequest<QueryResponse>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Query()
Retrieve your YouTube Analytics reports.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getCurrency()
The currency to which financial metrics should be converted.
|
java.lang.String |
getDimensions()
A comma-separated list of YouTube Analytics dimensions, such as `views` or `ageGroup,gender`.
|
java.lang.String |
getEndDate()
The end date for fetching YouTube Analytics data.
|
java.lang.String |
getFilters()
A list of filters that should be applied when retrieving YouTube Analytics data.
|
java.lang.String |
getIds()
Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics
data.
|
java.lang.Boolean |
getIncludeHistoricalChannelData()
If set to true historical data (i.e.
|
java.lang.Integer |
getMaxResults()
The maximum number of rows to include in the response.", minValue: 1
|
java.lang.String |
getMetrics()
A comma-separated list of YouTube Analytics metrics, such as `views` or `likes,dislikes`.
|
java.lang.String |
getSort()
A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics
data.
|
java.lang.String |
getStartDate()
The start date for fetching YouTube Analytics data.
|
java.lang.Integer |
getStartIndex()
An index of the first entity to retrieve.
|
YouTubeAnalytics.Reports.Query |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTubeAnalytics.Reports.Query |
set$Xgafv(java.lang.String $Xgafv)
V1 error format.
|
YouTubeAnalytics.Reports.Query |
setAccessToken(java.lang.String accessToken)
OAuth access token.
|
YouTubeAnalytics.Reports.Query |
setAlt(java.lang.String alt)
Data format for response.
|
YouTubeAnalytics.Reports.Query |
setCallback(java.lang.String callback)
JSONP
|
YouTubeAnalytics.Reports.Query |
setCurrency(java.lang.String currency)
The currency to which financial metrics should be converted.
|
YouTubeAnalytics.Reports.Query |
setDimensions(java.lang.String dimensions)
A comma-separated list of YouTube Analytics dimensions, such as `views` or
`ageGroup,gender`.
|
YouTubeAnalytics.Reports.Query |
setEndDate(java.lang.String endDate)
The end date for fetching YouTube Analytics data.
|
YouTubeAnalytics.Reports.Query |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTubeAnalytics.Reports.Query |
setFilters(java.lang.String filters)
A list of filters that should be applied when retrieving YouTube Analytics data.
|
YouTubeAnalytics.Reports.Query |
setIds(java.lang.String ids)
Identifies the YouTube channel or content owner for which you are retrieving YouTube
Analytics data.
|
YouTubeAnalytics.Reports.Query |
setIncludeHistoricalChannelData(java.lang.Boolean includeHistoricalChannelData)
If set to true historical data (i.e.
|
YouTubeAnalytics.Reports.Query |
setKey(java.lang.String key)
API key.
|
YouTubeAnalytics.Reports.Query |
setMaxResults(java.lang.Integer maxResults)
The maximum number of rows to include in the response.", minValue: 1
|
YouTubeAnalytics.Reports.Query |
setMetrics(java.lang.String metrics)
A comma-separated list of YouTube Analytics metrics, such as `views` or `likes,dislikes`.
|
YouTubeAnalytics.Reports.Query |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTubeAnalytics.Reports.Query |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTubeAnalytics.Reports.Query |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTubeAnalytics.Reports.Query |
setSort(java.lang.String sort)
A comma-separated list of dimensions or metrics that determine the sort order for YouTube
Analytics data.
|
YouTubeAnalytics.Reports.Query |
setStartDate(java.lang.String startDate)
The start date for fetching YouTube Analytics data.
|
YouTubeAnalytics.Reports.Query |
setStartIndex(java.lang.Integer startIndex)
An index of the first entity to retrieve.
|
YouTubeAnalytics.Reports.Query |
setUploadProtocol(java.lang.String uploadProtocol)
Upload protocol for media (e.g.
|
YouTubeAnalytics.Reports.Query |
setUploadType(java.lang.String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<QueryResponse>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<QueryResponse>
java.io.IOException
public YouTubeAnalytics.Reports.Query set$Xgafv(java.lang.String $Xgafv)
YouTubeAnalyticsRequest
set$Xgafv
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setAccessToken(java.lang.String accessToken)
YouTubeAnalyticsRequest
setAccessToken
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setAlt(java.lang.String alt)
YouTubeAnalyticsRequest
setAlt
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setCallback(java.lang.String callback)
YouTubeAnalyticsRequest
setCallback
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setFields(java.lang.String fields)
YouTubeAnalyticsRequest
setFields
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setKey(java.lang.String key)
YouTubeAnalyticsRequest
setKey
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setOauthToken(java.lang.String oauthToken)
YouTubeAnalyticsRequest
setOauthToken
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeAnalyticsRequest
setPrettyPrint
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setQuotaUser(java.lang.String quotaUser)
YouTubeAnalyticsRequest
setQuotaUser
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setUploadType(java.lang.String uploadType)
YouTubeAnalyticsRequest
setUploadType
in class YouTubeAnalyticsRequest<QueryResponse>
public YouTubeAnalytics.Reports.Query setUploadProtocol(java.lang.String uploadProtocol)
YouTubeAnalyticsRequest
setUploadProtocol
in class YouTubeAnalyticsRequest<QueryResponse>
public java.lang.String getSort()
public YouTubeAnalytics.Reports.Query setSort(java.lang.String sort)
public java.lang.String getStartDate()
public YouTubeAnalytics.Reports.Query setStartDate(java.lang.String startDate)
public java.lang.String getMetrics()
public YouTubeAnalytics.Reports.Query setMetrics(java.lang.String metrics)
public java.lang.String getIds()
public YouTubeAnalytics.Reports.Query setIds(java.lang.String ids)
public java.lang.Boolean getIncludeHistoricalChannelData()
public YouTubeAnalytics.Reports.Query setIncludeHistoricalChannelData(java.lang.Boolean includeHistoricalChannelData)
public java.lang.String getCurrency()
public YouTubeAnalytics.Reports.Query setCurrency(java.lang.String currency)
public java.lang.Integer getStartIndex()
public YouTubeAnalytics.Reports.Query setStartIndex(java.lang.Integer startIndex)
public java.lang.String getDimensions()
public YouTubeAnalytics.Reports.Query setDimensions(java.lang.String dimensions)
public java.lang.String getEndDate()
public YouTubeAnalytics.Reports.Query setEndDate(java.lang.String endDate)
public java.lang.Integer getMaxResults()
public YouTubeAnalytics.Reports.Query setMaxResults(java.lang.Integer maxResults)
public java.lang.String getFilters()
public YouTubeAnalytics.Reports.Query setFilters(java.lang.String filters)
public YouTubeAnalytics.Reports.Query set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeAnalyticsRequest<QueryResponse>