Class: Google::Apis::YoutubeV3::ChannelSectionTargeting

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

Overview

ChannelSection targeting setting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChannelSectionTargeting

Returns a new instance of ChannelSectionTargeting.



1644
1645
1646
# File 'generated/google/apis/youtube_v3/classes.rb', line 1644

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

Instance Attribute Details

#countriesArray<String>

The country the channel section is targeting. Corresponds to the JSON property countries

Returns:

  • (Array<String>)


1632
1633
1634
# File 'generated/google/apis/youtube_v3/classes.rb', line 1632

def countries
  @countries
end

#languagesArray<String>

The language the channel section is targeting. Corresponds to the JSON property languages

Returns:

  • (Array<String>)


1637
1638
1639
# File 'generated/google/apis/youtube_v3/classes.rb', line 1637

def languages
  @languages
end

#regionsArray<String>

The region the channel section is targeting. Corresponds to the JSON property regions

Returns:

  • (Array<String>)


1642
1643
1644
# File 'generated/google/apis/youtube_v3/classes.rb', line 1642

def regions
  @regions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1649
1650
1651
1652
1653
# File 'generated/google/apis/youtube_v3/classes.rb', line 1649

def update!(**args)
  @countries = args[:countries] if args.key?(:countries)
  @languages = args[:languages] if args.key?(:languages)
  @regions = args[:regions] if args.key?(:regions)
end