Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonPolicyTopicConstraintCountryConstraintList

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#countriesArray<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_countriesFixnum

Total number of countries targeted by the resource. Corresponds to the JSON property totalTargetedCountries

Returns:

  • (Fixnum)


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