gogol-youtube-analytics-0.0.1: Google YouTube Analytics SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.YouTubeAnalytics

Contents

Description

Retrieve your YouTube Analytics reports.

See: YouTube Analytics API Reference

Synopsis

Service Configuration

youTubeAnalyticsService :: Service Source

Default request referring to version v1 of the YouTube Analytics API. This contains the host and root path used as a starting point for constructing service requests.

API Declaration

Resources

youtubeAnalytics.batchReportDefinitions.list

youtubeAnalytics.batchReports.list

youtubeAnalytics.groupItems.delete

youtubeAnalytics.groupItems.insert

youtubeAnalytics.groupItems.list

youtubeAnalytics.groups.delete

youtubeAnalytics.groups.insert

youtubeAnalytics.groups.list

youtubeAnalytics.groups.update

youtubeAnalytics.reports.query

Types

GroupContentDetails

groupContentDetails :: GroupContentDetails Source

Creates a value of GroupContentDetails with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Group

group' :: Group Source

Creates a value of Group with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

GroupItemResource

groupItemResource :: GroupItemResource Source

Creates a value of GroupItemResource with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ResultTableColumnHeadersItem

resultTableColumnHeadersItem :: ResultTableColumnHeadersItem Source

Creates a value of ResultTableColumnHeadersItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rtchiColumnType :: Lens' ResultTableColumnHeadersItem (Maybe Text) Source

The type of the column (DIMENSION or METRIC).

rtchiName :: Lens' ResultTableColumnHeadersItem (Maybe Text) Source

The name of the dimension or metric.

rtchiDataType :: Lens' ResultTableColumnHeadersItem (Maybe Text) Source

The type of the data in the column (STRING, INTEGER, FLOAT, etc.).

ResultTable

data ResultTable Source

Contains a single result table. The table is returned as an array of rows that contain the values for the cells of the table. Depending on the metric or dimension, the cell can contain a string (video ID, country code) or a number (number of views or number of likes).

See: resultTable smart constructor.

resultTable :: ResultTable Source

Creates a value of ResultTable with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rtKind :: Lens' ResultTable Text Source

This value specifies the type of data included in the API response. For the query method, the kind property value will be youtubeAnalytics#resultTable.

rtRows :: Lens' ResultTable [[JSONValue]] Source

The list contains all rows of the result table. Each item in the list is an array that contains comma-delimited data corresponding to a single row of data. The order of the comma-delimited data fields will match the order of the columns listed in the columnHeaders field. If no data is available for the given query, the rows element will be omitted from the response. The response for a query with the day dimension will not contain rows for the most recent days.

rtColumnHeaders :: Lens' ResultTable [ResultTableColumnHeadersItem] Source

This value specifies information about the data returned in the rows fields. Each item in the columnHeaders list identifies a field returned in the rows value, which contains a list of comma-delimited data. The columnHeaders list will begin with the dimensions specified in the API request, which will be followed by the metrics specified in the API request. The order of both dimensions and metrics will match the ordering in the API request. For example, if the API request contains the parameters dimensions=ageGroup,gender&metrics=viewerPercentage, the API response will return columns in this order: ageGroup,gender,viewerPercentage.

BatchReportDefinition

batchReportDefinition :: BatchReportDefinition Source

Creates a value of BatchReportDefinition with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

brdStatus :: Lens' BatchReportDefinition (Maybe Text) Source

Status of the report definition.

brdKind :: Lens' BatchReportDefinition Text Source

This value specifies the type of data of this item. For batch report definition the kind property value is youtubeAnalytics#batchReportDefinition.

brdName :: Lens' BatchReportDefinition (Maybe Text) Source

Name of the report definition.

brdId :: Lens' BatchReportDefinition (Maybe Text) Source

The ID that YouTube assigns and uses to uniquely identify the report definition.

brdType :: Lens' BatchReportDefinition (Maybe Text) Source

Type of the report definition.

BatchReport

batchReport :: BatchReport Source

Creates a value of BatchReport with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

brTimeUpdated :: Lens' BatchReport (Maybe UTCTime) Source

The time when the report was updated.

brKind :: Lens' BatchReport Text Source

This value specifies the type of data of this item. For batch report the kind property value is youtubeAnalytics#batchReport.

brReportId :: Lens' BatchReport (Maybe Text) Source

The ID of the the report definition.

brTimeSpan :: Lens' BatchReport (Maybe BatchReportTimeSpan) Source

Period included in the report. For reports containing all entities endTime is not set. Both startTime and endTime are inclusive.

brId :: Lens' BatchReport (Maybe Text) Source

The ID that YouTube assigns and uses to uniquely identify the report.

GroupSnippet

groupSnippet :: GroupSnippet Source

Creates a value of GroupSnippet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

GroupItem

groupItem :: GroupItem Source

Creates a value of GroupItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

BatchReportDefinitionList

batchReportDefinitionList :: BatchReportDefinitionList Source

Creates a value of BatchReportDefinitionList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

brdlKind :: Lens' BatchReportDefinitionList Text Source

This value specifies the type of data included in the API response. For the list method, the kind property value is youtubeAnalytics#batchReportDefinitionList.

brdlItems :: Lens' BatchReportDefinitionList [BatchReportDefinition] Source

A list of batchReportDefinition resources that match the request criteria.

BatchReportList

data BatchReportList Source

A paginated list of batchReport resources returned in response to a youtubeAnalytics.batchReport.list request.

See: batchReportList smart constructor.

batchReportList :: BatchReportList Source

Creates a value of BatchReportList with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

brlKind :: Lens' BatchReportList Text Source

This value specifies the type of data included in the API response. For the list method, the kind property value is youtubeAnalytics#batchReportList.

brlItems :: Lens' BatchReportList [BatchReport] Source

A list of batchReport resources that match the request criteria.

BatchReportOutputsItem

batchReportOutputsItem :: BatchReportOutputsItem Source

Creates a value of BatchReportOutputsItem with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

broiDownloadURL :: Lens' BatchReportOutputsItem (Maybe Text) Source

Cloud storage URL to download this report. This URL is valid for 30 minutes.

BatchReportTimeSpan

data BatchReportTimeSpan Source

Period included in the report. For reports containing all entities endTime is not set. Both startTime and endTime are inclusive.

See: batchReportTimeSpan smart constructor.

batchReportTimeSpan :: BatchReportTimeSpan Source

Creates a value of BatchReportTimeSpan with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

brtsStartTime :: Lens' BatchReportTimeSpan (Maybe UTCTime) Source

Start of the period included in the report. Inclusive.

brtsEndTime :: Lens' BatchReportTimeSpan (Maybe UTCTime) Source

End of the period included in the report. Inclusive. For reports containing all entities endTime is not set.

GroupItemListResponse

groupItemListResponse :: GroupItemListResponse Source

Creates a value of GroupItemListResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

GroupListResponse

data GroupListResponse Source

A paginated list of grouList resources returned in response to a youtubeAnalytics.groupApi.list request.

See: groupListResponse smart constructor.

groupListResponse :: GroupListResponse Source

Creates a value of GroupListResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired: