Class: Google::Apis::DisplayvideoV1::CreateAssignedTargetingOptionsRequest

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

A request listing which assigned targeting options of a given targeting type should be created and added.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateAssignedTargetingOptionsRequest

Returns a new instance of CreateAssignedTargetingOptionsRequest.



2047
2048
2049
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 2047

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

Instance Attribute Details

#assigned_targeting_optionsArray<Google::Apis::DisplayvideoV1::AssignedTargetingOption>

Required. The assigned targeting options to create and add. Corresponds to the JSON property assignedTargetingOptions



2040
2041
2042
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 2040

def assigned_targeting_options
  @assigned_targeting_options
end

#targeting_typeString

Required. Identifies the type of this assigned targeting option. Corresponds to the JSON property targetingType

Returns:

  • (String)


2045
2046
2047
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 2045

def targeting_type
  @targeting_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2052
2053
2054
2055
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 2052

def update!(**args)
  @assigned_targeting_options = args[:assigned_targeting_options] if args.key?(:assigned_targeting_options)
  @targeting_type = args[:targeting_type] if args.key?(:targeting_type)
end