{
  "name": "youtubeAnalytics",
  "version": "v2",
  "version_module": true,
  "batchPath": "batch",
  "discoveryVersion": "v1",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "rootUrl": "https://youtubeanalytics.googleapis.com/",
  "schemas": {
    "Group": {
      "id": "Group",
      "description": "A group.",
      "type": "object",
      "properties": {
        "kind": {
          "description": "Identifies the API resource's type. The value will be `youtube#group`.",
          "type": "string"
        },
        "etag": {
          "description": "The Etag of this resource.",
          "type": "string"
        },
        "id": {
          "description": "The ID that YouTube uses to uniquely identify the group.",
          "type": "string"
        },
        "snippet": {
          "description": "The `snippet` object contains basic information about the group, including its creation date and name.",
          "$ref": "GroupSnippet"
        },
        "contentDetails": {
          "description": "The `contentDetails` object contains additional information about the group, such as the number and type of items that it contains.",
          "$ref": "GroupContentDetails"
        },
        "errors": {
          "description": "Apiary error details",
          "$ref": "Errors"
        }
      }
    },
    "GroupSnippet": {
      "id": "GroupSnippet",
      "description": "A group snippet.",
      "type": "object",
      "properties": {
        "publishedAt": {
          "description": "The date and time that the group was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.",
          "type": "string",
          "format": "google-datetime"
        },
        "title": {
          "description": "The group name. The value must be a non-empty string.",
          "type": "string"
        }
      }
    },
    "GroupContentDetails": {
      "id": "GroupContentDetails",
      "description": "A group's content details.",
      "type": "object",
      "properties": {
        "itemCount": {
          "description": "The number of items in the group.",
          "type": "string",
          "format": "uint64"
        },
        "itemType": {
          "description": "The type of resources that the group contains. Valid values for this property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` * `youtubePartner#asset`",
          "type": "string"
        }
      }
    },
    "Errors": {
      "id": "Errors",
      "description": "Request Error information. The presence of an error field signals that the operation has failed.",
      "type": "object",
      "properties": {
        "requestId": {
          "description": "Request identifier generated by the service, which can be used to identify the error in the logs",
          "type": "string"
        },
        "error": {
          "description": "Specific error description and codes",
          "type": "array",
          "items": {
            "$ref": "ErrorProto"
          }
        },
        "code": {
          "description": "Global error code. Deprecated and ignored. Set custom error codes in ErrorProto.domain and ErrorProto.code instead.",
          "deprecated": true,
          "type": "string",
          "enumDescriptions": [
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            ""
          ],
          "enum": [
            "BAD_REQUEST",
            "FORBIDDEN",
            "NOT_FOUND",
            "CONFLICT",
            "GONE",
            "PRECONDITION_FAILED",
            "INTERNAL_ERROR",
            "SERVICE_UNAVAILABLE"
          ]
        }
      }
    },
    "ErrorProto": {
      "id": "ErrorProto",
      "description": "Describes one specific error.",
      "type": "object",
      "properties": {
        "domain": {
          "description": "Error domain. RoSy services can define their own domain and error codes. This should normally be the name of an enum type, such as: gdata.CoreErrorDomain",
          "type": "string"
        },
        "code": {
          "description": "Error code in the error domain. This should correspond to a value of the enum type whose name is in domain. See the core error domain in error_domain.proto.",
          "type": "string"
        },
        "argument": {
          "description": "Error arguments, to be used when building user-friendly error messages given the error domain and code. Different error codes require different arguments.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "locationType": {
          "type": "string",
          "enumDescriptions": [
            "location is an xpath-like path pointing to the request field that caused the error.",
            "other location type which can safely be shared externally.",
            "Location is request parameter. This maps to the {@link PARAMETERS} in {@link MessageLocation}."
          ],
          "enum": [
            "PATH",
            "OTHER",
            "PARAMETER"
          ]
        },
        "location": {
          "description": "Location of the error, as specified by the location type. If location_type is PATH, this should be a path to a field that's relative to the request, using FieldPath notation (net/proto2/util/public/field_path.h). Examples: authenticated_user.gaia_id resource.address[2].country",
          "type": "string"
        },
        "debugInfo": {
          "description": "Debugging information, which should not be shared externally.",
          "type": "string"
        },
        "externalErrorMessage": {
          "description": "A short explanation for the error, which can be shared outside Google. Please set domain, code and arguments whenever possible instead of this error message so that external APIs can build safe error messages themselves. External messages built in a RoSy interface will most likely refer to information and concepts that are not available externally and should not be exposed. It is safer if external APIs can understand the errors and decide what the error message should look like.",
          "type": "string"
        }
      }
    },
    "ListGroupsResponse": {
      "id": "ListGroupsResponse",
      "description": "Response message for GroupsService.ListGroups.",
      "type": "object",
      "properties": {
        "kind": {
          "description": "Identifies the API resource's type. The value will be `youtube#groupListResponse`.",
          "type": "string"
        },
        "etag": {
          "description": "The Etag of this resource.",
          "type": "string"
        },
        "items": {
          "description": "A list of groups that match the API request parameters. Each item in the list represents a `group` resource.",
          "type": "array",
          "items": {
            "$ref": "Group"
          }
        },
        "nextPageToken": {
          "description": "The token that can be used as the value of the `pageToken` parameter to retrieve the next page in the result set.",
          "type": "string"
        },
        "errors": {
          "description": "Apiary error details",
          "$ref": "Errors"
        }
      }
    },
    "EmptyResponse": {
      "id": "EmptyResponse",
      "description": "Empty response.",
      "type": "object",
      "properties": {
        "errors": {
          "description": "Apiary error details",
          "$ref": "Errors"
        }
      }
    },
    "GroupItem": {
      "id": "GroupItem",
      "description": "A group item.",
      "type": "object",
      "properties": {
        "kind": {
          "description": "Identifies the API resource's type. The value will be `youtube#groupItem`.",
          "type": "string"
        },
        "etag": {
          "description": "The Etag of this resource.",
          "type": "string"
        },
        "id": {
          "description": "The ID that YouTube uses to uniquely identify the `channel`, `video`, `playlist`, or `asset` resource that is included in the group. Note that this ID refers specifically to the inclusion of that resource in a particular group and is different than the channel ID, video ID, playlist ID, or asset ID that uniquely identifies the resource itself. The `resource.id` property's value specifies the unique channel, video, playlist, or asset ID.",
          "type": "string"
        },
        "groupId": {
          "description": "The ID that YouTube uses to uniquely identify the group that contains the item.",
          "type": "string"
        },
        "resource": {
          "description": "The `resource` object contains information that identifies the item being added to the group.",
          "$ref": "GroupItemResource"
        },
        "errors": {
          "description": "Apiary error details",
          "$ref": "Errors"
        }
      }
    },
    "GroupItemResource": {
      "id": "GroupItemResource",
      "type": "object",
      "properties": {
        "kind": {
          "description": "Identifies the type of resource being added to the group. Valid values for this property are: * `youtube#channel` * `youtube#playlist` * `youtube#video` * `youtubePartner#asset`",
          "type": "string"
        },
        "id": {
          "description": "The channel, video, playlist, or asset ID that YouTube uses to uniquely identify the item that is being added to the group.",
          "type": "string"
        }
      }
    },
    "ListGroupItemsResponse": {
      "id": "ListGroupItemsResponse",
      "description": "Response message for GroupsService.ListGroupItems.",
      "type": "object",
      "properties": {
        "kind": {
          "description": "Identifies the API resource's type. The value will be `youtube#groupItemListResponse`.",
          "type": "string"
        },
        "etag": {
          "description": "The Etag of this resource.",
          "type": "string"
        },
        "items": {
          "description": "A list of groups that match the API request parameters. Each item in the list represents a `groupItem` resource.",
          "type": "array",
          "items": {
            "$ref": "GroupItem"
          }
        },
        "errors": {
          "description": "Apiary error details",
          "$ref": "Errors"
        }
      }
    },
    "QueryResponse": {
      "id": "QueryResponse",
      "description": "Response message for TargetedQueriesService.Query.",
      "type": "object",
      "properties": {
        "kind": {
          "description": "This value specifies the type of data included in the API response. For the query method, the kind property value will be `youtubeAnalytics#resultTable`.",
          "type": "string"
        },
        "columnHeaders": {
          "description": "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`.",
          "type": "array",
          "items": {
            "$ref": "ResultTableColumnHeader"
          }
        },
        "rows": {
          "description": "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.",
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "any"
            }
          }
        },
        "errors": {
          "description": "When set, indicates that the operation failed.",
          "$ref": "Errors"
        }
      }
    },
    "ResultTableColumnHeader": {
      "id": "ResultTableColumnHeader",
      "description": "The description of a column of the result table.",
      "type": "object",
      "properties": {
        "name": {
          "description": "The name of the dimension or metric.",
          "type": "string"
        },
        "columnType": {
          "description": "The type of the column (`DIMENSION` or `METRIC`).",
          "type": "string"
        },
        "dataType": {
          "description": "The type of the data in the column (`STRING`, `INTEGER`, `FLOAT`, etc.).",
          "type": "string"
        }
      }
    }
  },
  "resources": {
    "groups": {
      "methods": {
        "insert": {
          "id": "youtubeAnalytics.groups.insert",
          "path": "v2/groups",
          "flatPath": "v2/groups",
          "httpMethod": "POST",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "request": {
            "$ref": "Group"
          },
          "response": {
            "$ref": "Group"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Creates a group."
        },
        "list": {
          "id": "youtubeAnalytics.groups.list",
          "path": "v2/groups",
          "flatPath": "v2/groups",
          "httpMethod": "GET",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            },
            "id": {
              "description": "The `id` parameter specifies a comma-separated list of the YouTube group ID(s) for the resource(s) that are being retrieved. Each group must be owned by the authenticated user. In a `group` resource, the `id` property specifies the group's YouTube group ID. Note that if you do not specify a value for the `id` parameter, then you must set the `mine` parameter to `true`.",
              "location": "query",
              "type": "string"
            },
            "mine": {
              "description": "This parameter can only be used in a properly authorized request. Set this parameter's value to true to retrieve all groups owned by the authenticated user.",
              "location": "query",
              "type": "boolean"
            },
            "pageToken": {
              "description": "The `pageToken` parameter identifies a specific page in the result set that should be returned. In an API response, the `nextPageToken` property identifies the next page that can be retrieved.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "ListGroupsResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Returns a collection of groups that match the API request parameters. For example, you can retrieve all groups that the authenticated user owns, or you can retrieve one or more groups by their unique IDs."
        },
        "update": {
          "id": "youtubeAnalytics.groups.update",
          "path": "v2/groups",
          "flatPath": "v2/groups",
          "httpMethod": "PUT",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "request": {
            "$ref": "Group"
          },
          "response": {
            "$ref": "Group"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Modifies a group. For example, you could change a group's title."
        },
        "delete": {
          "id": "youtubeAnalytics.groups.delete",
          "path": "v2/groups",
          "flatPath": "v2/groups",
          "httpMethod": "DELETE",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            },
            "id": {
              "description": "The `id` parameter specifies the YouTube group ID of the group that is being deleted.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "EmptyResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Deletes a group."
        }
      }
    },
    "groupItems": {
      "methods": {
        "insert": {
          "id": "youtubeAnalytics.groupItems.insert",
          "path": "v2/groupItems",
          "flatPath": "v2/groupItems",
          "httpMethod": "POST",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "request": {
            "$ref": "GroupItem"
          },
          "response": {
            "$ref": "GroupItem"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Creates a group item."
        },
        "list": {
          "id": "youtubeAnalytics.groupItems.list",
          "path": "v2/groupItems",
          "flatPath": "v2/groupItems",
          "httpMethod": "GET",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            },
            "groupId": {
              "description": "The `groupId` parameter specifies the unique ID of the group for which you want to retrieve group items.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "ListGroupItemsResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Returns a collection of group items that match the API request parameters."
        },
        "delete": {
          "id": "youtubeAnalytics.groupItems.delete",
          "path": "v2/groupItems",
          "flatPath": "v2/groupItems",
          "httpMethod": "DELETE",
          "parameters": {
            "onBehalfOfContentOwner": {
              "description": "This parameter can only be used in a properly authorized request. **Note:** This parameter is intended exclusively for YouTube content partners that own and manage many different YouTube channels. The `onBehalfOfContentOwner` parameter indicates that the request's authorization credentials identify a YouTube user who is acting on behalf of the content owner specified in the parameter value. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The account that the user authenticates with must be linked to the specified YouTube content owner.",
              "location": "query",
              "type": "string"
            },
            "id": {
              "description": "The `id` parameter specifies the YouTube group item ID of the group item that is being deleted.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "EmptyResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Removes an item from a group."
        }
      }
    },
    "reports": {
      "methods": {
        "query": {
          "id": "youtubeAnalytics.reports.query",
          "path": "v2/reports",
          "flatPath": "v2/reports",
          "httpMethod": "GET",
          "parameters": {
            "ids": {
              "description": "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. required: true, pattern: [a-zA-Z]+==[a-zA-Z0-9_+-]+",
              "location": "query",
              "type": "string"
            },
            "startDate": {
              "description": "The start date for fetching YouTube Analytics data. The value should be in `YYYY-MM-DD` format. required: true, pattern: \"[0-9]{4}-[0-9]{2}-[0-9]{2}",
              "location": "query",
              "type": "string"
            },
            "endDate": {
              "description": "The end date for fetching YouTube Analytics data. The value should be in `YYYY-MM-DD` format. required: true, pattern: [0-9]{4}-[0-9]{2}-[0-9]{2}",
              "location": "query",
              "type": "string"
            },
            "metrics": {
              "description": "A comma-separated list of YouTube Analytics metrics, such as `views` or `likes,dislikes`. See the [Available Reports](/youtube/analytics/v2/available_reports) document for a list of the reports that you can retrieve and the metrics available in each report, and see the [Metrics](/youtube/analytics/v2/dimsmets/mets) document for definitions of those metrics. required: true, pattern: [0-9a-zA-Z,]+",
              "location": "query",
              "type": "string"
            },
            "dimensions": {
              "description": "A comma-separated list of YouTube Analytics dimensions, such as `views` or `ageGroup,gender`. See the [Available Reports](/youtube/analytics/v2/available_reports) document for a list of the reports that you can retrieve and the dimensions used for those reports. Also see the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document for definitions of those dimensions.\" pattern: [0-9a-zA-Z,]+",
              "location": "query",
              "type": "string"
            },
            "currency": {
              "description": "The currency to which financial metrics should be converted. The default is US Dollar (USD). If the result contains no financial metrics, this flag will be ignored. Responds with an error if the specified currency is not recognized.\", pattern: [A-Z]{3}",
              "location": "query",
              "type": "string"
            },
            "filters": {
              "description": "A list of filters that should be applied when retrieving YouTube Analytics data. The [Available Reports](/youtube/analytics/v2/available_reports) document identifies the dimensions that can be used to filter each report, and the [Dimensions](/youtube/analytics/v2/dimsmets/dims) document defines those dimensions. If a request uses multiple filters, join them together with a semicolon (`;`), and the returned result table will satisfy both filters. For example, a filters parameter value of `video==dMH0bHeiRNg;country==IT` restricts the result set to include data for the given video in Italy.\",",
              "location": "query",
              "type": "string"
            },
            "includeHistoricalChannelData": {
              "description": "If set to true historical data (i.e. channel data from before the linking of the channel to the content owner) will be retrieved.\",",
              "location": "query",
              "type": "boolean"
            },
            "maxResults": {
              "description": "The maximum number of rows to include in the response.\", minValue: 1",
              "location": "query",
              "type": "integer",
              "format": "int32"
            },
            "sort": {
              "description": "A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The '`-`' prefix causes descending sort order.\", pattern: [-0-9a-zA-Z,]+",
              "location": "query",
              "type": "string"
            },
            "startIndex": {
              "description": "An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter (one-based, inclusive).\", minValue: 1",
              "location": "query",
              "type": "integer",
              "format": "int32"
            }
          },
          "parameterOrder": [],
          "response": {
            "$ref": "QueryResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/youtube",
            "https://www.googleapis.com/auth/youtube.readonly",
            "https://www.googleapis.com/auth/youtubepartner",
            "https://www.googleapis.com/auth/yt-analytics-monetary.readonly",
            "https://www.googleapis.com/auth/yt-analytics.readonly"
          ],
          "description": "Retrieve your YouTube Analytics reports."
        }
      }
    }
  },
  "fullyEncodeReservedExpansion": true,
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/youtube": {
          "description": "Manage your YouTube account"
        },
        "https://www.googleapis.com/auth/youtube.readonly": {
          "description": "View your YouTube account"
        },
        "https://www.googleapis.com/auth/youtubepartner": {
          "description": "View and manage your assets and associated content on YouTube"
        },
        "https://www.googleapis.com/auth/yt-analytics-monetary.readonly": {
          "description": "View monetary and non-monetary YouTube Analytics reports for your YouTube content"
        },
        "https://www.googleapis.com/auth/yt-analytics.readonly": {
          "description": "View YouTube Analytics reports for your YouTube content"
        }
      }
    }
  },
  "ownerDomain": "google.com",
  "title": "YouTube Analytics API",
  "revision": "20260511",
  "baseUrl": "https://youtubeanalytics.googleapis.com/",
  "parameters": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "alt": {
      "type": "string",
      "description": "Data format for response.",
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "location": "query"
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "prettyPrint": {
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "location": "query"
    },
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    },
    "$.xgafv": {
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ],
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "location": "query"
    }
  },
  "ownerName": "Google",
  "id": "youtubeAnalytics:v2",
  "basePath": "",
  "canonicalName": "YouTube Analytics",
  "servicePath": "",
  "protocol": "rest",
  "kind": "discovery#restDescription",
  "mtlsRootUrl": "https://youtubeanalytics.mtls.googleapis.com/",
  "documentationLink": "https://developers.google.com/youtube/analytics",
  "description": "Retrieves your YouTube Analytics data."
}
