class Google::Apis::YoutubePartnerV1::CountriesRestriction
Attributes
ad_formats[RW]
A list of ad formats that can be used in the specified countries. Corresponds to the JSON property `adFormats` @return [Array<String>]
territories[RW]
A list of ISO 3166-1 alpha-2 country codes that identify the countries where ads are enabled. Corresponds to the JSON property `territories` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/youtube_partner_v1/classes.rb, line 1485 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/youtube_partner_v1/classes.rb, line 1490 def update!(**args) @ad_formats = args[:ad_formats] if args.key?(:ad_formats) @territories = args[:territories] if args.key?(:territories) end