Class: Google::Apis::AdexchangebuyerV1_4::Dimension

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

Overview

This message carries publisher provided breakdown. E.g. dimension_type: ' COUNTRY', [dimension_value: id: 1, name: 'US',dimension_value: id: 2, name: 'UK']

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

Returns a new instance of Dimension.


1712
1713
1714
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1712

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

Instance Attribute Details

#dimension_typeString

Corresponds to the JSON property dimensionType

Returns:

  • (String)

1705
1706
1707
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1705

def dimension_type
  @dimension_type
end

#dimension_valuesArray<Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue>

Corresponds to the JSON property dimensionValues


1710
1711
1712
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1710

def dimension_values
  @dimension_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1717
1718
1719
1720
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1717

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