public class YouTubeAnalytics.Reports.Query extends YouTubeAnalyticsRequest<ResultTable>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
YouTubeAnalytics.Reports.Query(java.lang.String ids,
java.lang.String startDate,
java.lang.String endDate,
java.lang.String metrics)
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.Integer |
getMaxResults()
The maximum number of rows to include in the response.
|
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 |
setAlt(java.lang.String alt)
Data format for the response.
|
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 |
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.
|
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 |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected YouTubeAnalytics.Reports.Query(java.lang.String ids,
java.lang.String startDate,
java.lang.String endDate,
java.lang.String metrics)
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.
ids - Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics data.
- To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID,
where CHANNEL_ID specifies the unique YouTube channel ID.
- To request data for a YouTube
CMS content owner, set the ids parameter value to contentOwner==OWNER_NAME, where
OWNER_NAME is the CMS name of the content owner.startDate - The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.endDate - The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.metrics - A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the
Available Reports document for a list of the reports that you can retrieve and the metrics
available in each report, and see the Metrics document for definitions of those metrics.public com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ResultTable>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ResultTable>java.io.IOExceptionpublic YouTubeAnalytics.Reports.Query setAlt(java.lang.String alt)
YouTubeAnalyticsRequestsetAlt in class YouTubeAnalyticsRequest<ResultTable>public YouTubeAnalytics.Reports.Query setFields(java.lang.String fields)
YouTubeAnalyticsRequestsetFields in class YouTubeAnalyticsRequest<ResultTable>public YouTubeAnalytics.Reports.Query setKey(java.lang.String key)
YouTubeAnalyticsRequestsetKey in class YouTubeAnalyticsRequest<ResultTable>public YouTubeAnalytics.Reports.Query setOauthToken(java.lang.String oauthToken)
YouTubeAnalyticsRequestsetOauthToken in class YouTubeAnalyticsRequest<ResultTable>public YouTubeAnalytics.Reports.Query setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeAnalyticsRequestsetPrettyPrint in class YouTubeAnalyticsRequest<ResultTable>public YouTubeAnalytics.Reports.Query setQuotaUser(java.lang.String quotaUser)
YouTubeAnalyticsRequestsetQuotaUser in class YouTubeAnalyticsRequest<ResultTable>public YouTubeAnalytics.Reports.Query setUserIp(java.lang.String userIp)
YouTubeAnalyticsRequestsetUserIp in class YouTubeAnalyticsRequest<ResultTable>public java.lang.String getIds()
public YouTubeAnalytics.Reports.Query setIds(java.lang.String ids)
public java.lang.String getStartDate()
public YouTubeAnalytics.Reports.Query setStartDate(java.lang.String startDate)
public java.lang.String getEndDate()
public YouTubeAnalytics.Reports.Query setEndDate(java.lang.String endDate)
public java.lang.String getMetrics()
public YouTubeAnalytics.Reports.Query setMetrics(java.lang.String metrics)
public java.lang.String getCurrency()
public YouTubeAnalytics.Reports.Query setCurrency(java.lang.String currency)
public java.lang.String getDimensions()
public YouTubeAnalytics.Reports.Query setDimensions(java.lang.String dimensions)
public java.lang.String getFilters()
public YouTubeAnalytics.Reports.Query setFilters(java.lang.String filters)
public java.lang.Integer getMaxResults()
public YouTubeAnalytics.Reports.Query setMaxResults(java.lang.Integer maxResults)
public java.lang.String getSort()
public YouTubeAnalytics.Reports.Query setSort(java.lang.String sort)
public java.lang.Integer getStartIndex()
public YouTubeAnalytics.Reports.Query setStartIndex(java.lang.Integer startIndex)
public YouTubeAnalytics.Reports.Query set(java.lang.String parameterName, java.lang.Object value)
set in class YouTubeAnalyticsRequest<ResultTable>