REST Resource: policies

  • A policy resource 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 id and 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 (PolicyRule)
    }
  ],
  "id": string
}
Fields
kind

string

Identifies this as a policy. Value: "youtubePartner#policy"

name

string

The policy's name.

description

string

The policy's description.

timeUpdated

string

The time the policy was updated.

rules[]

object (PolicyRule)

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

string

A value that YouTube assigns and uses to uniquely identify the policy.

Methods

get

Retrieves the specified saved policy.

insert

Creates a saved policy.

list

Retrieves a list of the content owner's saved policies.

patch

Patches the specified saved policy.

update

Updates the specified saved policy.