REST Resource: advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations

Resource: YoutubeAssetAssociation

An association between a resource and a YouTube asset.

JSON representation
{
  "name": string,
  "youtubeAssetType": enum (YoutubeAssetType),
  "linkedYoutubeAsset": {
    object (LinkedYouTubeAsset)
  }
}
Fields
name

string

Identifier. The resource name of the association.

For line item-level associations: The name pattern is advertisers/{advertiserId}/lineItems/{lineItemId}/youtubeAssetTypes/{youtubeAssetType}/youtubeAssetAssociations/{youtubeAssetAssociationId}.

For ad group-level associations: The name pattern is advertisers/{advertiserId}/adGroups/{adGroupId}/youtubeAssetTypes/{youtubeAssetType}/youtubeAssetAssociations/{youtubeAssetAssociationId}.

For YOUTUBE_ASSET_TYPE_LOCATION and YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION associations: youtubeAssetAssociationId is the ID of the asset set linked, or 0 if the locationMatchingType or affiliateLocationMatchingType is DISABLED.

For YOUTUBE_ASSET_TYPE_SITELINK associations: youtubeAssetAssociationId is be the ID of the sitelink asset linked.

youtubeAssetType

enum (YoutubeAssetType)

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

linkedYoutubeAsset

object (LinkedYouTubeAsset)

Required. The YouTube asset associated with the resource.

Methods

create

Creates a new association between the identified resource and a YouTube asset.

delete

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

list

Lists the YouTube asset associations linked to the given resource.