Method: policies.list
Stay organized with collections
Save and categorize content based on your preferences.
Retrieves a list of the content owner's saved policies.
HTTP request
GET https://youtubepartner.googleapis.com/youtube/partner/v1/policies
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters |
id |
string
The id parameter specifies a comma-separated list of saved policy IDs to retrieve. Only policies belonging to the currently authenticated content owner will be available.
|
onBehalfOfContentOwner |
string
The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on behalf of. This parameter supports users whose accounts are associated with multiple content owners.
|
sort |
enum (Sort )
The sort parameter specifies how the search results should be sorted.
|
Request body
The request body must be empty.
Response body
A list of policies returned in response to a policies.list
call.
If successful, the response body contains data with the following structure:
JSON representation |
{
"kind": string,
"items": [
{
object (Policy )
}
]
} |
Fields |
kind |
string
The type of the API response. For this operation, the value is youtubePartner#policyList .
|
items[] |
object (Policy )
A list of saved policies.
|
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/youtubepartner
For more information, see the OAuth 2.0 Overview.
Sort
Supported sorting orders.
Enums |
SORT_UNSPECIFIED |
Default value. |
TIME_UPDATED_ASC |
Sort by the update time ascending. |
TIME_UPDATED_DESC |
Sort by the update time descending. |
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-09-25 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]