Class: Google::Apis::Adexchangebuyer2V2beta1::VideoTargeting

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

Overview

Represents targeting information about video.

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

Returns a new instance of VideoTargeting.


4027
4028
4029
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4027

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

Instance Attribute Details

#excluded_position_typesArray<String>

A list of video positions to be excluded. Position types can either be included or excluded (XOR). Corresponds to the JSON property excludedPositionTypes

Returns:

  • (Array<String>)

4018
4019
4020
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4018

def excluded_position_types
  @excluded_position_types
end

#targeted_position_typesArray<String>

A list of video positions to be included. When the included list is present, the excluded list must be empty. When the excluded list is present, the included list must be empty. Corresponds to the JSON property targetedPositionTypes

Returns:

  • (Array<String>)

4025
4026
4027
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4025

def targeted_position_types
  @targeted_position_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4032
4033
4034
4035
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4032

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