Class: Google::Apis::YoutubePartnerV1::CountriesRestriction
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::CountriesRestriction
- 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
-
#ad_formats ⇒ Array<String>
A list of ad formats that can be used in the specified countries.
-
#territories ⇒ Array<String>
A list of ISO 3166-1 alpha-2 country codes that identify the countries where ads are enabled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CountriesRestriction
constructor
A new instance of CountriesRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CountriesRestriction
Returns a new instance of CountriesRestriction.
1479 1480 1481 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_formats ⇒ Array<String>
A list of ad formats that can be used in the specified countries.
Corresponds to the JSON property adFormats
1471 1472 1473 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1471 def ad_formats @ad_formats end |
#territories ⇒ Array<String>
A list of ISO 3166-1 alpha-2 country codes that identify the countries where
ads are enabled.
Corresponds to the JSON property territories
1477 1478 1479 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1477 def territories @territories end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1484 1485 1486 1487 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1484 def update!(**args) @ad_formats = args[:ad_formats] if args.key?(:ad_formats) @territories = args[:territories] if args.key?(:territories) end |