Class: Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue

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

Value of the dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionDimensionValue

Returns a new instance of DimensionDimensionValue.



1745
1746
1747
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1745

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

Instance Attribute Details

#idFixnum

Id of the dimension. Corresponds to the JSON property id

Returns:

  • (Fixnum)


1730
1731
1732
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1730

def id
  @id
end

#nameString

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

Returns:

  • (String)


1736
1737
1738
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1736

def name
  @name
end

#percentageFixnum

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

Returns:

  • (Fixnum)


1743
1744
1745
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1743

def percentage
  @percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1750
1751
1752
1753
1754
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1750

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