Method: advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete

Deletes an existing association between the identified resource and a YouTube asset.

HTTP request

DELETE https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/lineItems/{linkedEntity.lineItemId}/youtubeAssetTypes/{youtubeAssetType}/youtubeAssetAssociations/{youtubeAssetAssociationId}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
advertiserId

string (int64 format)

Required. The ID of the advertiser that the linked entity belongs to.

Union parameter entity. The entity to associate with the YouTube asset. entity can be only one of the following:
linkedEntity.lineItemId

string (int64 format)

The ID of a line item.

youtubeAssetType

enum (YoutubeAssetType)

Required. The type of YouTube asset associated with the resource.

youtubeAssetAssociationId

string (int64 format)

Required. The ID of the YouTube asset in the association.

For YOUTUBE_ASSET_TYPE_LOCATION and YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION associations: This should be the ID of the asset set linked, or 0 if the [locationAssetFilter][YoutubeAssetAssociation.location_asset_filter] or [affiliateLocationAssetFilter][YoutubeAssetAssociation.affiliate_location_asset_filter] is DISABLED.

For YOUTUBE_ASSET_TYPE_SITELINK associations: This should be the ID of the sitelink asset linked.

Query parameters

Parameters
Union parameter entity. The entity to associate with the YouTube asset. entity can be only one of the following:
linkedEntity.adGroupId

string (int64 format)

The ID of an ad group.

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/display-video

For more information, see the OAuth 2.0 Overview.