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.



400
401
402
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 400

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

Instance Attribute Details

#country_criterion_idFixnum

The country criterion id. Corresponds to the JSON property countryCriterionId

Returns:

  • (Fixnum)


393
394
395
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 393

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)


398
399
400
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 398

def country_label
  @country_label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



405
406
407
408
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 405

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