Class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb

Overview

An association between a resource and a YouTube asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeAssetAssociation

Returns a new instance of YoutubeAssetAssociation.



14734
14735
14736
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14734

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#linked_youtube_assetGoogle::Apis::DisplayvideoV4::YoutubeAssetAssociationLinkedYouTubeAsset

A YouTube asset linked to a resource in a YoutubeAssetAssociation. Corresponds to the JSON property linkedYoutubeAsset



14711
14712
14713
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14711

def linked_youtube_asset
  @linked_youtube_asset
end

#nameString

Identifier. The resource name of the association. For line item-level associations: The name pattern is advertisers/advertiser_id/lineItems/ line_item_id/youtubeAssetTypes/youtube_asset_type/youtubeAssetAssociations/ youtube_asset_association_id. For ad group-level associations: The name pattern is `advertisers/`advertiser_id`/adGroups/`ad_group_id`/ youtubeAssetTypes/`youtube_asset_type`/youtubeAssetAssociations/` youtube_asset_association_id. For YOUTUBE_ASSET_TYPE_LOCATION and YOUTUBE_ASSET_TYPE_AFFILIATE_LOCATION associations: youtube_asset_association_id is the ID of the asset set linked, or 0 if the location_matching_type or affiliate_location_matching_type is DISABLED. For YOUTUBE_ASSET_TYPE_SITELINK associations: youtube_asset_association_id is be the ID of the sitelink asset linked. Corresponds to the JSON property name

Returns:

  • (String)


14727
14728
14729
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14727

def name
  @name
end

#youtube_asset_typeString

Required. The type of YouTube asset associated with the resource. Corresponds to the JSON property youtubeAssetType

Returns:

  • (String)


14732
14733
14734
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14732

def youtube_asset_type
  @youtube_asset_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14739
14740
14741
14742
14743
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14739

def update!(**args)
  @linked_youtube_asset = args[:linked_youtube_asset] if args.key?(:linked_youtube_asset)
  @name = args[:name] if args.key?(:name)
  @youtube_asset_type = args[:youtube_asset_type] if args.key?(:youtube_asset_type)
end