Method: campaigns.delete

  • This webpage documents the process for deleting a YouTube campaign via an HTTP DELETE request to the https://youtubepartner.googleapis.com/youtube/partner/v1/campaigns/{campaignId} endpoint.

  • The campaignId path parameter is a required string representing the ID of the YouTube campaign to be deleted.

  • The onBehalfOfContentOwner query parameter, also a string, is used to specify the content owner on whose behalf the user is acting.

  • The request body must be empty for this API call, and the response body will be an empty JSON object upon successful deletion.

  • Deleting a campaign requires the OAuth scope https://www.googleapis.com/auth/youtubepartner .

Deletes a specified campaign for an owner.

HTTP request

DELETE https://youtubepartner.googleapis.com/youtube/partner/v1/campaigns/{campaignId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
campaignId

string

The campaignId parameter specifies the YouTube campaign ID of the campaign being deleted.

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 must be empty.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview .

Create a Mobile Website
View Site in Mobile | Classic
Share by: