Class: Google::Apis::DisplayvideoV3::AdPolicyCriterionRestriction

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

Overview

Represents a country restriction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdPolicyCriterionRestriction

Returns a new instance of AdPolicyCriterionRestriction.



338
339
340
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 338

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

Instance Attribute Details

#country_criterion_idFixnum

The country criterion id. Corresponds to the JSON property countryCriterionId

Returns:

  • (Fixnum)


331
332
333
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 331

def country_criterion_id
  @country_criterion_id
end

#country_labelString

Localized name for the country. May be empty. Corresponds to the JSON property countryLabel

Returns:

  • (String)


336
337
338
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 336

def country_label
  @country_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



343
344
345
346
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 343

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