Method: validator.validateAsync

  • This webpage documents how to use the validator.validateAsync method to asynchronously validate a metadata file for YouTube Partner.

  • The HTTP request is made using a POST request to https://youtubepartner.googleapis.com/youtube/partner/v1/validatorAsync , which follows gRPC Transcoding syntax.

  • The request requires a onBehalfOfContentOwner query parameter to identify the content owner and the request body is defined by ValidateAsyncRequest which has a JSON representation that includes uploaderName , content , and kind fields.

  • The response body provides the validation status , validationId , and kind in JSON format.

  • The API uses OAuth 2.0 authorization and requires the https://www.googleapis.com/auth/youtubepartner scope for successful access.

validator.validate a metadata file asynchronously.

HTTP request

POST https://youtubepartner.googleapis.com/youtube/partner/v1/validatorAsync

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
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.

Request body

The request body contains an instance of ValidateAsyncRequest .

Response body

Response to a validator.validateAsync request.

If successful, the response body contains data with the following structure:

JSON representation
 { 
 "status" 
 : 
 string 
 , 
 "validationId" 
 : 
 string 
 , 
 "kind" 
 : 
 string 
 } 
Fields
status

string

The validation status.

validationId

string

The validation ID.

kind

string

The type of the API resource. For this operation, the value is youtubePartner#validateAsyncResponse .

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/youtubepartner

For more information, see the OAuth 2.0 Overview .

ValidateAsyncRequest

Request to a validator.validateAsync metadata.

JSON representation
 { 
 "uploaderName" 
 : 
 string 
 , 
 "content" 
 : 
 string 
 , 
 "kind" 
 : 
 string 
 } 
Fields
uploaderName

string

The uploader name.

content

string

The metadata file contents.

kind

string

The type of the API resource. For this operation, the value is youtubePartner#validateAsyncRequest .

Design a Mobile Site
View Site in Mobile | Classic
Share by: