Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLocationGroupInfo
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLocationGroupInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
A radius around a list of locations specified through a feed.
Instance Attribute Summary collapse
-
#feed_item_sets ⇒ Array<String>
FeedItemSets whose FeedItems are targeted.
-
#geo_target_constants ⇒ Array<String>
Geo target constant(s) restricting the scope of the geographic area within the feed.
-
#radius ⇒ Fixnum
Distance in units specifying the radius around targeted locations.
-
#radius_units ⇒ String
Unit of the radius.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonLocationGroupInfo
constructor
A new instance of GoogleAdsSearchads360V0CommonLocationGroupInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonLocationGroupInfo
Returns a new instance of GoogleAdsSearchads360V0CommonLocationGroupInfo.
232 233 234 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 232 def initialize(**args) update!(**args) end |
Instance Attribute Details
#feed_item_sets ⇒ Array<String>
FeedItemSets whose FeedItems are targeted. If multiple IDs are specified, then
all items that appear in at least one set are targeted. This field cannot be
used with geo_target_constants. This is optional and can only be set in CREATE
operations.
Corresponds to the JSON property feedItemSets
211 212 213 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 211 def feed_item_sets @feed_item_sets end |
#geo_target_constants ⇒ Array<String>
Geo target constant(s) restricting the scope of the geographic area within the
feed. Currently only one geo target constant is allowed.
Corresponds to the JSON property geoTargetConstants
217 218 219 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 217 def geo_target_constants @geo_target_constants end |
#radius ⇒ Fixnum
Distance in units specifying the radius around targeted locations. This is
required and must be set in CREATE operations.
Corresponds to the JSON property radius
223 224 225 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 223 def radius @radius end |
#radius_units ⇒ String
Unit of the radius. Miles and meters are supported for geo target constants.
Milli miles and meters are supported for feed item sets. This is required and
must be set in CREATE operations.
Corresponds to the JSON property radiusUnits
230 231 232 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 230 def radius_units @radius_units end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
237 238 239 240 241 242 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 237 def update!(**args) @feed_item_sets = args[:feed_item_sets] if args.key?(:feed_item_sets) @geo_target_constants = args[:geo_target_constants] if args.key?(:geo_target_constants) @radius = args[:radius] if args.key?(:radius) @radius_units = args[:radius_units] if args.key?(:radius_units) end |