Class: Google::Apis::YoutubePartnerV1::CampaignTargetLink

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CampaignTargetLink

Returns a new instance of CampaignTargetLink.



750
751
752
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 750

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

Instance Attribute Details

#target_idString

The channel ID or video ID of the link target. Corresponds to the JSON property targetId

Returns:

  • (String)


743
744
745
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 743

def target_id
  @target_id
end

#target_typeString

Indicates whether the link target is a channel or video. Corresponds to the JSON property targetType

Returns:

  • (String)


748
749
750
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 748

def target_type
  @target_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



755
756
757
758
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 755

def update!(**args)
  @target_id = args[:target_id] if args.key?(:target_id)
  @target_type = args[:target_type] if args.key?(:target_type)
end