Class: Google::Apis::DisplayvideoV3::AssignedLocation
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::AssignedLocation
- 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
An assignment between a location list and a relevant targeting option.
Instance Attribute Summary collapse
-
#assigned_location_id ⇒ Fixnum
Output only.
-
#name ⇒ String
Output only.
-
#targeting_option_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssignedLocation
constructor
A new instance of AssignedLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AssignedLocation
Returns a new instance of AssignedLocation.
1273 1274 1275 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assigned_location_id ⇒ Fixnum
Output only. The unique ID of the assigned location. The ID is only unique
within a location list. It may be reused in other contexts.
Corresponds to the JSON property assignedLocationId
1261 1262 1263 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1261 def assigned_location_id @assigned_location_id end |
#name ⇒ String
Output only. The resource name of the assigned location.
Corresponds to the JSON property name
1266 1267 1268 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1266 def name @name end |
#targeting_option_id ⇒ String
Required. The ID of the targeting option assigned to the location list.
Corresponds to the JSON property targetingOptionId
1271 1272 1273 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1271 def targeting_option_id @targeting_option_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1278 1279 1280 1281 1282 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1278 def update!(**args) @assigned_location_id = args[:assigned_location_id] if args.key?(:assigned_location_id) @name = args[:name] if args.key?(:name) @targeting_option_id = args[:targeting_option_id] if args.key?(:targeting_option_id) end |