Show / Hide Table of Contents

Class AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource

The "youtubeAssetAssociations" collection of methods.

Inheritance
object
AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DisplayVideo.v4
Assembly: Google.Apis.DisplayVideo.v4.dll
Syntax
public class AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource

Constructors

YoutubeAssetAssociationsResource(IClientService)

Constructs a new resource.

Declaration
public YoutubeAssetAssociationsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(YoutubeAssetAssociation, long, long, YoutubeAssetTypeEnum)

Creates a new association between the identified resource and a YouTube asset. Returns the newly-created association. Warning: This method is only available to an informed subset of users.

Declaration
public virtual AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest Create(YoutubeAssetAssociation body, long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest.YoutubeAssetTypeEnum youtubeAssetType)
Parameters
Type Name Description
YoutubeAssetAssociation body

The body of the request.

long advertiserId

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

long lineItemId

The ID of a line item.

AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest.YoutubeAssetTypeEnum youtubeAssetType

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

Returns
Type Description
AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.CreateRequest

Delete(long, long, YoutubeAssetTypeEnum, long)

Deletes an existing association between the identified resource and a YouTube asset. Warning: This method is only available to an informed subset of users.

Declaration
public virtual AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.DeleteRequest Delete(long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.DeleteRequest.YoutubeAssetTypeEnum youtubeAssetType, long youtubeAssetAssociationId)
Parameters
Type Name Description
long advertiserId

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

long lineItemId

The ID of a line item.

AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.DeleteRequest.YoutubeAssetTypeEnum youtubeAssetType

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

long youtubeAssetAssociationId

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 location_asset_filter or affiliate_location_asset_filter is DISABLED. For YOUTUBE_ASSET_TYPE_SITELINK associations: This should be the ID of the sitelink asset linked.

Returns
Type Description
AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.DeleteRequest

List(long, long, YoutubeAssetTypeEnum)

Lists the YouTube asset associations linked to the given resource.

Declaration
public virtual AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.ListRequest List(long advertiserId, long lineItemId, AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.ListRequest.YoutubeAssetTypeEnum youtubeAssetType)
Parameters
Type Name Description
long advertiserId

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

long lineItemId

The ID of a line item.

AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.ListRequest.YoutubeAssetTypeEnum youtubeAssetType

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

Returns
Type Description
AdvertisersResource.LineItemsResource.YoutubeAssetTypesResource.YoutubeAssetAssociationsResource.ListRequest
In this article
Back to top Generated by DocFX