Class: Google::Apis::DisplayvideoV1::AssignedLocation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb

Overview

An assignment between a location list and a relevant targeting option. Currently, geo region targeting options are the only supported option for assignment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssignedLocation

Returns a new instance of AssignedLocation.



649
650
651
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 649

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

Instance Attribute Details

#assigned_location_idFixnum

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

Returns:

  • (Fixnum)


636
637
638
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 636

def assigned_location_id
  @assigned_location_id
end

#nameString

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

Returns:

  • (String)


641
642
643
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 641

def name
  @name
end

#targeting_option_idString

Required. The ID of the targeting option assigned to the location list. Must be of type TARGETING_TYPE_GEO_REGION. Corresponds to the JSON property targetingOptionId

Returns:

  • (String)


647
648
649
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 647

def targeting_option_id
  @targeting_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



654
655
656
657
658
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 654

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