Class: Aws::AppMonetization::Types::CustomerType

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb

Overview

One type of customer. Usage and value per use are relative to an ordinary user of the app, and independent of each other: a heavy user can be worth less per use.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#feature_weights ⇒ Hash<String,Float>

How much each characteristic in features matters to this type, when it differs from the shared features.weights. Absent: features.weights (equal weights when that is absent too). Used only when a comparable or an outside option in alternatives is scored by features; sent otherwise, it is rejected.

Returns:

  • (Hash<String,Float>)


1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1685

class CustomerType < Struct.new(
  :name,
  :share,
  :usage_multiplier,
  :value_per_use_multiplier,
  :usage_spread,
  :feature_weights)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

Short name of the customer type, for example solo devs.

Returns:

  • (String)


1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1685

class CustomerType < Struct.new(
  :name,
  :share,
  :usage_multiplier,
  :value_per_use_multiplier,
  :usage_spread,
  :feature_weights)
  SENSITIVE = []
  include Aws::Structure
end

#share ⇒ Float

Share of users of this type. Shares are relative: they are scaled to sum to 100.

Returns:

  • (Float)


1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1685

class CustomerType < Struct.new(
  :name,
  :share,
  :usage_multiplier,
  :value_per_use_multiplier,
  :usage_spread,
  :feature_weights)
  SENSITIVE = []
  include Aws::Structure
end

#usage_multiplier ⇒ Float

Uses per month as a multiple of each action's typicalMonthlyUsage (2 = twice as many).

Returns:

  • (Float)


1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1685

class CustomerType < Struct.new(
  :name,
  :share,
  :usage_multiplier,
  :value_per_use_multiplier,
  :usage_spread,
  :feature_weights)
  SENSITIVE = []
  include Aws::Structure
end

#usage_spread ⇒ String

How similar customers of this type are in how much they use the app. Absent: the segment's default.

Returns:

  • (String)


1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1685

class CustomerType < Struct.new(
  :name,
  :share,
  :usage_multiplier,
  :value_per_use_multiplier,
  :usage_spread,
  :feature_weights)
  SENSITIVE = []
  include Aws::Structure
end

#value_per_use_multiplier ⇒ Float

Value of one use as a multiple of an ordinary user's (0.5 = half, 2 = twice).

Returns:

  • (Float)


1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'gems/aws-sdk-appmonetization/lib/aws-sdk-appmonetization/types.rb', line 1685

class CustomerType < Struct.new(
  :name,
  :share,
  :usage_multiplier,
  :value_per_use_multiplier,
  :usage_spread,
  :feature_weights)
  SENSITIVE = []
  include Aws::Structure
end