Class: Google::Apis::DisplayvideoV2::LocationList
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::LocationList
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
A list of locations used for targeting.
Instance Attribute Summary collapse
-
#advertiser_id ⇒ Fixnum
Required.
-
#display_name ⇒ String
Required.
-
#location_list_id ⇒ Fixnum
Output only.
-
#location_type ⇒ String
Required.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationList
constructor
A new instance of LocationList.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocationList
Returns a new instance of LocationList.
8510 8511 8512 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ Fixnum
Required. Immutable. The unique ID of the advertiser the location list belongs
to.
Corresponds to the JSON property advertiserId
8486 8487 8488 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8486 def advertiser_id @advertiser_id end |
#display_name ⇒ String
Required. The display name of the location list. Must be UTF-8 encoded with a
maximum size of 240 bytes.
Corresponds to the JSON property displayName
8492 8493 8494 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8492 def display_name @display_name end |
#location_list_id ⇒ Fixnum
Output only. The unique ID of the location list. Assigned by the system.
Corresponds to the JSON property locationListId
8497 8498 8499 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8497 def location_list_id @location_list_id end |
#location_type ⇒ String
Required. Immutable. The type of location. All locations in the list will
share this type.
Corresponds to the JSON property locationType
8503 8504 8505 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8503 def location_type @location_type end |
#name ⇒ String
Output only. The resource name of the location list.
Corresponds to the JSON property name
8508 8509 8510 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8508 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8515 8516 8517 8518 8519 8520 8521 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8515 def update!(**args) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @display_name = args[:display_name] if args.key?(:display_name) @location_list_id = args[:location_list_id] if args.key?(:location_list_id) @location_type = args[:location_type] if args.key?(:location_type) @name = args[:name] if args.key?(:name) end |