Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
A list of countries where a resource's serving is constrained.
Instance Attribute Summary collapse
-
#countries ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraint>
Countries in which serving is restricted.
-
#total_targeted_countries ⇒ Fixnum
Total number of countries targeted by the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList
constructor
A new instance of GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList
Returns a new instance of GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList.
448 449 450 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#countries ⇒ Array<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraint>
Countries in which serving is restricted.
Corresponds to the JSON property countries
441 442 443 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 441 def countries @countries end |
#total_targeted_countries ⇒ Fixnum
Total number of countries targeted by the resource.
Corresponds to the JSON property totalTargetedCountries
446 447 448 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 446 def total_targeted_countries @total_targeted_countries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
453 454 455 456 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 453 def update!(**args) @countries = args[:countries] if args.key?(:countries) @total_targeted_countries = args[:total_targeted_countries] if args.key?(:total_targeted_countries) end |