- Resource: YoutubeAssetAssociation
- Methods
Resource: YoutubeAssetAssociation
An association between a resource and a YouTube asset.
| JSON representation | 
|---|
| { "name": string, "youtubeAssetType": enum ( | 
| Fields | |
|---|---|
| name | 
 Identifier. The resource name of the association. For line item-level associations: The name pattern is  For ad group-level associations: The name pattern is  For  For  | 
| youtubeAssetType | 
 Required. The type of YouTube asset associated with the resource. | 
| linkedYoutubeAsset | 
 Required. The YouTube asset associated with the resource. | 
YoutubeAssetType
Possible types of YouTube assets.
These assets will show additional information alongside ads during serving.
| Enums | |
|---|---|
| YOUTUBE_ASSET_TYPE_UNSPECIFIED | YouTube asset type is not specified or is unknown in this version. | 
| YOUTUBE_ASSET_TYPE_LOCATION | Location asset. | 
| YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION | Affiliate location asset. | 
| YOUTUBE_ASSET_TYPE_SITELINK | Sitelink asset. | 
LinkedYouTubeAsset
A YouTube asset linked to a resource in a YoutubeAssetAssociation.
| JSON representation | 
|---|
| { // Union field | 
| Fields | |
|---|---|
| Union field youtube_asset. The YouTube asset.youtube_assetcan be only one of the following: | |
| locationAssetFilter | 
 A location asset filter. This can be set only when  | 
| affiliateLocationAssetFilter | 
 A affiliate location asset filter. This can be set only when  | 
| sitelinkAsset | 
 A sitelink asset. This can be set only when  | 
LocationAssetFilter
An asset filter that matches eligible location assets for serving.
| JSON representation | 
|---|
| { "locationMatchingType": enum ( | 
| Fields | |
|---|---|
| locationMatchingType | 
 Required. The matching type of this location asset filter. | 
| assetSetId | 
 Output only. The ID of the asset set that matches the location assets eligible for serving. | 
| locationMatchingFunction | 
 Optional. The matching function that dicates how the location asset filter matches location assets. This field is required and can only be set for if  | 
LocationMatchingType
Possible matching types that decide which location assets are eligible for serving.
| Enums | |
|---|---|
| LOCATION_MATCHING_TYPE_UNSPECIFIED | Location matching type is not specified or is unknown in this version. | 
| SELECT_ALL | All available location assets are eligible for serving. | 
| FILTER | The location assets that match a provided business name and/or label filters can serve. | 
| SELECTED_ASSETS | Only the selected location assets can serve. | 
| DISABLED | No location assets can serve. | 
LocationMatchingFunction
The matching function for a location asset filter.
| JSON representation | 
|---|
| { "labels": [ string ], "locationAssetIds": [ string ], "business": string } | 
| Fields | |
|---|---|
| labels[] | 
 Optional. The label to match with. Labels are logically OR'ed together. This field is optional and can only be set if  | 
| locationAssetIds[] | 
 Optional. The selected location asset IDs. This field is required if  | 
| business | 
 Optional. The business name to match with. This field is optional and can only be set if  | 
AffiliateLocationAssetFilter
An asset filter that matches eligible affiliate location assets for serving.
| JSON representation | 
|---|
| { "affiliateLocationMatchingType": enum ( | 
| Fields | |
|---|---|
| affiliateLocationMatchingType | 
 Required. The matching type of this affiliate location asset filter. | 
| assetSetId | 
 Output only. The ID of the asset set that matches the affiliate location assets eligible for serving. | 
| affiliateLocationMatchingFunction | 
 Optional. The matching function that dicates how the affiliate location asset filter matches affiliate location assets. This field is required and can only be set for if  | 
AffiliateLocationMatchingType
Possible matching types that decide which affiliate location assets are eligible for serving.
| Enums | |
|---|---|
| AFFILIATE_LOCATION_MATCHING_TYPE_UNSPECIFIED | Affiliate location matching type is not specified or is unknown in this version. | 
| SELECT_ALL | All available affiliate location assets are eligible for serving. | 
| SELECTED_CHAINS | The selected affiliate location assets can serve. | 
| DISABLED | No affiliate location assets can serve. | 
AffiliateLocationMatchingFunction
The matching function for an affiliate location asset filter.
| JSON representation | 
|---|
| {
  "chains": [
    {
      object ( | 
| Fields | |
|---|---|
| chains[] | 
 Optional. The selected affiliate location chain IDs. This field is required if  | 
AffiliateLocationChain
A chain of affiliate locations.
| JSON representation | 
|---|
| { "chainId": string } | 
| Fields | |
|---|---|
| chainId | 
 Required. ID of the affiliate location chain. | 
SitelinkAsset
A sitelink asset.
| JSON representation | 
|---|
| { "assetId": string } | 
| Fields | |
|---|---|
| assetId | 
 Required. ID of the sitelink asset. | 
| Methods | |
|---|---|
| 
 | Creates a new association between the identified resource and a YouTube asset. | 
| 
 | Deletes an existing association between the identified resource and a YouTube asset. | 
| 
 | Lists the YouTube asset associations linked to the given resource. |