Class: Google::Apis::Adexchangebuyer2V2beta1::TargetingValue

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

A polymorphic targeting value used as part of Shared Targeting.

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

Returns a new instance of TargetingValue.


3843
3844
3845
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3843

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

Instance Attribute Details

#creative_size_valueGoogle::Apis::Adexchangebuyer2V2beta1::CreativeSize

Specifies the size of the creative. Corresponds to the JSON property creativeSizeValue


3826
3827
3828
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3826

def creative_size_value
  @creative_size_value
end

#day_part_targeting_valueGoogle::Apis::Adexchangebuyer2V2beta1::DayPartTargeting

Specifies the day part targeting criteria. Corresponds to the JSON property dayPartTargetingValue


3831
3832
3833
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3831

def day_part_targeting_value
  @day_part_targeting_value
end

#long_valueFixnum

The long value to include/exclude. Corresponds to the JSON property longValue

Returns:

  • (Fixnum)

3836
3837
3838
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3836

def long_value
  @long_value
end

#string_valueString

The string value to include/exclude. Corresponds to the JSON property stringValue

Returns:

  • (String)

3841
3842
3843
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3841

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3848
3849
3850
3851
3852
3853
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3848

def update!(**args)
  @creative_size_value = args[:creative_size_value] if args.key?(:creative_size_value)
  @day_part_targeting_value = args[:day_part_targeting_value] if args.key?(:day_part_targeting_value)
  @long_value = args[:long_value] if args.key?(:long_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end