Class: Google::Apis::DisplayvideoV1::ChannelAssignedTargetingOptionDetails

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

Details for assigned channel targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_CHANNEL.

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) ⇒ ChannelAssignedTargetingOptionDetails

Returns a new instance of ChannelAssignedTargetingOptionDetails.



1645
1646
1647
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1645

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

Instance Attribute Details

#channel_idFixnum

Required. ID of the channel. Should refer to the channel ID field on a Partner-owned channel or advertiser-owned channel resource. Corresponds to the JSON property channelId

Returns:

  • (Fixnum)


1636
1637
1638
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1636

def channel_id
  @channel_id
end

#negativeBoolean Also known as: negative?

Indicates if this option is being negatively targeted. For advertiser level assigned targeting option, this field must be true. Corresponds to the JSON property negative

Returns:

  • (Boolean)


1642
1643
1644
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1642

def negative
  @negative
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1650
1651
1652
1653
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1650

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