Class: Google::Apis::MerchantapiAccountsV1beta::GeoTargetArea

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

Overview

A list of geotargets that defines the region area.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GeoTargetArea

Returns a new instance of GeoTargetArea.



932
933
934
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 932

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

Instance Attribute Details

#geotarget_criteria_idsArray<Fixnum>

Required. A non-empty list of location IDs. They must all be of the same location type (for example, state). Corresponds to the JSON property geotargetCriteriaIds

Returns:

  • (Array<Fixnum>)


930
931
932
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 930

def geotarget_criteria_ids
  @geotarget_criteria_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



937
938
939
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 937

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