Page Summary
-
A
policyresource defines usage or match rules that partners can apply to assets or claims. -
Policies contain rules that dictate YouTube's actions under specific conditions, impacting asset management.
-
You can manage policies using a comprehensive set of methods including retrieval, creation, listing, patching, and updating.
-
Each policy is uniquely identifiable via an assigned
idand includes key descriptive properties like name and description.
Resource: Policy
A policy
resource specifies rules that define a particular usage or match policy that a partner can associate with an asset or claim.
| JSON representation |
|---|
{
"kind"
:
string
,
"name"
:
string
,
"description"
:
string
,
"timeUpdated"
:
string
,
"rules"
:
[
{
object (
|
| Fields | |
|---|---|
kind
|
Identifies this as a policy. Value: " |
name
|
The policy's name. |
description
|
The policy's description. |
timeUpdated
|
The time the policy was updated. |
rules[]
|
A list of rules that specify the action that YouTube should take and may optionally specify the conditions under which that action is enforced. |
id
|
A value that YouTube assigns and uses to uniquely identify the policy. |
Methods |
|
|---|---|
|
Retrieves the specified saved policy. |
|
Creates a saved policy. |
|
Retrieves a list of the content owner's saved policies. |
|
Patches the specified saved policy. |
|
Updates the specified saved policy. |

