Class: Google::Apis::DisplayvideoV2::LocationList

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationList

Returns a new instance of LocationList.



8575
8576
8577
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8575

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

Instance Attribute Details

#advertiser_idFixnum

Required. Immutable. The unique ID of the advertiser the location list belongs to. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


8551
8552
8553
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8551

def advertiser_id
  @advertiser_id
end

#display_nameString

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

Returns:

  • (String)


8557
8558
8559
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8557

def display_name
  @display_name
end

#location_list_idFixnum

Output only. The unique ID of the location list. Assigned by the system. Corresponds to the JSON property locationListId

Returns:

  • (Fixnum)


8562
8563
8564
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8562

def location_list_id
  @location_list_id
end

#location_typeString

Required. Immutable. The type of location. All locations in the list will share this type. Corresponds to the JSON property locationType

Returns:

  • (String)


8568
8569
8570
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8568

def location_type
  @location_type
end

#nameString

Output only. The resource name of the location list. Corresponds to the JSON property name

Returns:

  • (String)


8573
8574
8575
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8573

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8580
8581
8582
8583
8584
8585
8586
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 8580

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