Class: Google::Apis::DisplayvideoV3::ProximityLocationListAssignedTargetingOptionDetails
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::ProximityLocationListAssignedTargetingOptionDetails
- 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
Targeting details for proximity location list. This will be populated in the
details field of an AssignedTargetingOption when targeting_type is
TARGETING_TYPE_PROXIMITY_LOCATION_LIST
.
Instance Attribute Summary collapse
-
#proximity_location_list_id ⇒ Fixnum
Required.
-
#proximity_radius ⇒ Float
Required.
-
#proximity_radius_unit ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProximityLocationListAssignedTargetingOptionDetails
constructor
A new instance of ProximityLocationListAssignedTargetingOptionDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProximityLocationListAssignedTargetingOptionDetails
Returns a new instance of ProximityLocationListAssignedTargetingOptionDetails.
10985 10986 10987 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10985 def initialize(**args) update!(**args) end |
Instance Attribute Details
#proximity_location_list_id ⇒ Fixnum
Required. ID of the proximity location list. Should refer to the
location_list_id field of a LocationList resource whose type is
TARGETING_LOCATION_TYPE_PROXIMITY
.
Corresponds to the JSON property proximityLocationListId
10971 10972 10973 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10971 def proximity_location_list_id @proximity_location_list_id end |
#proximity_radius ⇒ Float
Required. Radius expressed in the distance units set in proximity_radius_unit.
This represents the size of the area around a chosen location that will be
targeted. Radius should be between 1 and 500 miles or 800 kilometers.
Corresponds to the JSON property proximityRadius
10978 10979 10980 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10978 def proximity_radius @proximity_radius end |
#proximity_radius_unit ⇒ String
Required. Radius distance units.
Corresponds to the JSON property proximityRadiusUnit
10983 10984 10985 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10983 def proximity_radius_unit @proximity_radius_unit end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10990 10991 10992 10993 10994 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10990 def update!(**args) @proximity_location_list_id = args[:proximity_location_list_id] if args.key?(:proximity_location_list_id) @proximity_radius = args[:proximity_radius] if args.key?(:proximity_radius) @proximity_radius_unit = args[:proximity_radius_unit] if args.key?(:proximity_radius_unit) end |