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.



15647
15648
15649
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15647

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



15624
15625
15626
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15624

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)


15640
15641
15642
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15640

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)


15645
15646
15647
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15645

def youtube_asset_type
  @youtube_asset_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15652
15653
15654
15655
15656
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15652

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