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 generated/google/apis/youtube_partner_v1/classes.rb, line 1575
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_partner_v1/classes.rb, line 1580
def update!(**args)
  @ad_formats = args[:ad_formats] if args.key?(:ad_formats)
  @territories = args[:territories] if args.key?(:territories)
end