Class: Google::Apis::YoutubePartnerV1::CampaignSource

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) ⇒ CampaignSource

Returns a new instance of CampaignSource



758
759
760
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 758

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

Instance Attribute Details

#source_typeString

The type of the campaign source. Corresponds to the JSON property sourceType

Returns:

  • (String)


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

def source_type
  @source_type
end

#source_valueArray<String>

A list of values of the campaign source. Corresponds to the JSON property sourceValue

Returns:

  • (Array<String>)


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

def source_value
  @source_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



763
764
765
766
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 763

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