Class: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/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.



444
445
446
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 444

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

Instance Attribute Details

#country_criterion_idFixnum

The country criterion id. Corresponds to the JSON property countryCriterionId

Returns:

  • (Fixnum)


437
438
439
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 437

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)


442
443
444
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 442

def country_label
  @country_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



449
450
451
452
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 449

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