Class: Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue
- 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
Value of the dimension.
Instance Attribute Summary collapse
-
#id ⇒ Fixnum
Id of the dimension.
-
#name ⇒ String
Name of the dimension mainly for debugging purposes, except for the case of CREATIVE_SIZE.
-
#percentage ⇒ Fixnum
Percent of total impressions for a dimension type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DimensionDimensionValue
constructor
A new instance of DimensionDimensionValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DimensionDimensionValue
Returns a new instance of DimensionDimensionValue
1674 1675 1676 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1674 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ Fixnum
Id of the dimension.
Corresponds to the JSON property id
1659 1660 1661 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1659 def id @id end |
#name ⇒ String
Name of the dimension mainly for debugging purposes, except for the case of
CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids.
Corresponds to the JSON property name
1665 1666 1667 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1665 def name @name end |
#percentage ⇒ Fixnum
Percent of total impressions for a dimension type. e.g. dimension_type: '
GENDER', [
dimension_value: id: 1, name: 'MALE', percentage: 60
]
Gender
MALE is 60% of all impressions which have gender.
Corresponds to the JSON property percentage
1672 1673 1674 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1672 def percentage @percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1679 1680 1681 1682 1683 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1679 def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @percentage = args[:percentage] if args.key?(:percentage) end |