AppMonetization / Client / get_plan_recommendation

get_plan_recommendation

AppMonetization.Client.get_plan_recommendation(**kwargs)

Returns a recommended pricing model and plan set for an app, calculated from the billable actions, costs, customer types, alternatives and preferences in the request. Built to be called by an agent working with the developer: most inputs are estimates the agent gathers from the app’s code and from the developer (who the users are, what an action saves them, what it costs to serve), and each optional member’s documentation says what its absence means, so send only the inputs you have a basis for. Stateless: nothing is stored, no app is required, and repeating a request returns the same recommendation unless the service has been updated in between. Every response carries the rendered texts summary and details. Smallest call (MEDIUM confidence): {“segment”:”CONSUMER”,”appType”:”DAILY_WORKFLOW”,”actions”:[{“unitCost”:0.02,”typicalMonthlyUsage”:30,”valuePerUse”:0.40}]}.

See also: AWS API Documentation

Request Syntax

response = client.get_plan_recommendation(
    appName='string',
    segment='CONSUMER'|'PROSUMER'|'ENTERPRISE',
    appType='INFRASTRUCTURE'|'DAILY_WORKFLOW'|'PERIODIC_WORKFLOW'|'POINT_UTILITY'|'CREATIVE'|'API_WRAPPER',
    valueKind='PRODUCTIVITY'|'EXPERIENTIAL',
    actions=[
        {
            'name': 'string',
            'unit': 'string',
            'unitCost': 123.0,
            'typicalMonthlyUsage': 123.0,
            'minutesSaved': 123.0,
            'moneySaved': 123.0,
            'valuePerUse': 123.0
        },
    ],
    hourlyRate=123.0,
    valueShare=123.0,
    features={
        'appScores': {
            'string': 123.0
        },
        'weights': {
            'string': 123.0
        }
    },
    costs={
        'source': 'ACTUALS'|'LIVE'|'ESTIMATE'|'NONE',
        'unknown': [
            'string',
        ],
        'fixedMonthlyCost': 123.0,
        'margins': [
            123.0,
        ]
    },
    alternatives={
        'comparablesOptIn': 'OPTED_IN'|'OPTED_OUT',
        'comparables': [
            {
                'name': 'string',
                'url': 'string',
                'mechanism': 'PAID_SUB'|'PER_REQUEST'|'FREE_CAPPED'|'FREEMIUM'|'ONE_TIME',
                'price': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'cap': 123.0,
                'includedUnits': 123.0,
                'overageRate': 123.0,
                'quality': 123.0,
                'features': {
                    'string': 123.0
                }
            },
        ],
        'outsideOptions': [
            {
                'name': 'string',
                'monthlyCost': 123.0,
                'quality': 123.0,
                'features': {
                    'string': 123.0
                }
            },
        ]
    },
    market={
        'expectedUsers': 123,
        'measuredConversion': {
            'payingUsers': 123,
            'users': 123
        },
        'customerTypes': [
            {
                'name': 'string',
                'share': 123.0,
                'usageMultiplier': 123.0,
                'valuePerUseMultiplier': 123.0,
                'usageSpread': 'SIMILAR'|'NORMAL'|'VARIED'|'EXTREME',
                'featureWeights': {
                    'string': 123.0
                }
            },
        ],
        'checkoutDropOff': {
            'freePlan': 123.0,
            'flat': 123.0,
            'perUse': 123.0,
            'tiered': 123.0
        }
    },
    planOptions={
        'pricingModelPreference': 'FLAT'|'TIERED'|'PER_USE'|'PER_USE_SPLIT',
        'freeTierInclusion': 'INCLUDE'|'EXCLUDE',
        'maxTierInclusion': 'INCLUDE'|'EXCLUDE',
        'annualPlanInclusion': 'INCLUDE'|'EXCLUDE',
        'creditPackInclusion': 'INCLUDE'|'EXCLUDE',
        'planPrices': [
            {
                'planCode': 'string',
                'actionName': 'string',
                'price': {
                    'currencyCode': 'string',
                    'amount': 'string'
                }
            },
        ],
        'publishedPrice': {
            'currencyCode': 'string',
            'amount': 'string'
        }
    },
    context={
        'nonAwsCostsNote': 'string',
        'valueBasis': 'string',
        'expectedUsersBasis': 'string',
        'usageSources': {
            'string': 'ESTIMATE'|'MEASURED'
        },
        'customerTypeDescriptions': {
            'string': 'string'
        }
    }
)
Parameters:
  • appName (string) – Display name of the app, used in the rendered text. Absent: your app.

  • segment (string) –

    [REQUIRED]

    Who buys the app.

  • appType (string) –

    [REQUIRED]

    Kind of app. It sets the service’s usage and value benchmarks for this kind of app.

  • valueKind (string) – What kind of value the app gives its users. Absent: PRODUCTIVITY. An experiential app has no time or money value, so with EXPERIENTIAL each of actions[].minutesSaved, actions[].moneySaved, actions[].valuePerUse, hourlyRate and valueShare that is sent is rejected. With EXPERIENTIAL, no planOptions.publishedPrice and no comparables used, a CONSUMER app is valued at the typical monthly price of public apps of its appType (there is none for API_WRAPPER), shown as an estimate. That estimate is not used when it is too close to a typical user’s usage cost, so the estimate alone never makes the verdict NOT_MONETIZABLE. The estimate exists only for CONSUMER: a PROSUMER or ENTERPRISE experiential app with no planOptions.publishedPrice and no usable comparables is priced from cost (verdict COST_ONLY, or COST_NOT_CHECKED when costs are not checked: no unitCost, or costs.source NONE; confidence LOW).

  • actions (list) –

    [REQUIRED]

    The things that your app charges for, each with its cost to serve, typical usage, and value to a customer. Names must be unique. Give a value basis ( minutesSaved, moneySaved or valuePerUse, one per action) on every action or on none: when no action has a value basis and there is no experiential estimate (see valueKind), the price is based on cost (and comparables, if opted in, or planOptions.publishedPrice) and the confidence is LOW. Give unitCost on every action or on none.

    • (dict) –

      One billable action: something a user does that costs money to serve and can be charged for.

      • name (string) –

        Action name, used as the metric key in plans, unitPrices and creditPacks. Unique within the request. Required when there is more than one action. Absent with exactly one action: usage.

      • unit (string) –

        Unit the action is counted in, for example lesson or report. Defaults to name.

      • unitCost (float) –

        Cost to serve one unit, in USD. Give it on every action or on none: required when another action has unitCost, and when costs.source is ACTUALS, LIVE or ESTIMATE. Absent on every action: cost to serve is not checked ( costs.source NONE). When any action’s unitCost is 0, costs.source is required.

      • typicalMonthlyUsage (float) – [REQUIRED]

        Typical number of units one user consumes per month.

      • minutesSaved (float) –

        Minutes one unit saves a customer compared with doing the task by hand. Sets the value of one use, together with hourlyRate (required with it): minutesSaved / 60 x hourlyRate x the value share that valueShare describes. Give at most one of minutesSaved, moneySaved and valuePerUse per action: a request that gives two on the same action is rejected. Rejected with valueKind EXPERIENTIAL, as are moneySaved and valuePerUse. Absent: this action’s value, if any, is moneySaved or valuePerUse (see valuePerUse for no value).

      • moneySaved (float) –

        Money one use saves the buyer, in USD: what they would otherwise spend on it (a service, a contractor, compute or paid staff time). The server values one use at a share of it; the share is set server-side, not an input ( valueShare does not apply). Give at most one of minutesSaved, moneySaved and valuePerUse per action: a request that gives two on the same action is rejected. Use valuePerUse when you have already worked out the dollar value of one use. Rejected with valueKind EXPERIENTIAL. Absent: this action’s value, if any, is minutesSaved or valuePerUse (see valuePerUse for no value).

      • valuePerUse (float) –

        Value of one unit to a typical customer, in USD: the final dollar value of one use ( valueShare does not apply), for an action that saves no time or money but has a dollar value (for example a lead worth 2 USD). Give at most one of minutesSaved, moneySaved and valuePerUse per action: a request that gives two on the same action is rejected. One of them is required when another action has a value basis (0 is allowed). When no action has a value basis and there is no experiential estimate (see valueKind), the price is based on cost (and comparables, if opted in, or planOptions.publishedPrice) and the confidence is LOW. For an action whose value is the time it saves, give minutesSaved instead; say how the figures were worked out in context.valueBasis. Rejected with valueKind EXPERIENTIAL.

  • hourlyRate (float) – What one hour of a customer’s time is worth, in USD: the hourly rate of the person whose time the app saves. Required when any action has minutesSaved. There is no default. It is used only with actions[].minutesSaved: sent when no action has minutesSaved, or with valueKind EXPERIENTIAL, it is rejected.

  • valueShare (float) – The most a typical customer would pay for the app, as a share of the time value it saves them ( minutesSaved / 60 times hourlyRate). Above 1 when the minutes understate the value. The value of one use of an action with minutesSaved is minutesSaved / 60 times hourlyRate times the share; the share does not apply to moneySaved or valuePerUse. When an action’s value is above 0, each outside option’s monthlyCost is also weighed at this share (see OutsideOption). Absent: the service’s benchmark share. For PROSUMER this value scales the service’s benchmark share instead of replacing it. With usable comparables the recommended price uses the service’s benchmark share for comparables instead, but this value still sets the price from the app’s value alone, which the confidence and the texts compare with. Rejected unless an action’s minutesSaved, moneySaved or valuePerUse is above 0 and, besides, an action has minutesSaved (0 counts) or an outside option’s monthlyCost is above 0: otherwise it changes nothing (with no value above 0 there is no value estimate, and an outside option counts in full). Rejected with valueKind EXPERIENTIAL.

  • features (dict) –

    How this app scores on the characteristics customers decide on, and how much each one matters. Required when a comparable or an outside option in alternatives is scored by features, and used only then: sent when no comparable and no outside option is scored by features, it is rejected. A comparable with alternatives.comparablesOptIn OPTED_OUT is validated but not used, so features scored only against such comparables is validated with them and changes nothing. Absent: every comparable and outside option is scored by its quality.

    • appScores (dict) – [REQUIRED]

      This app’s score on each characteristic, from 0 to 1 against the best in class.

      • (string) –

        Name of a characteristic customers decide on, for example privacy or speed.

        • (float) –

          A score from 0 to 1 for a characteristic, measured against the best in class.

    • weights (dict) –

      How much each characteristic matters, shared by every customer type that has no featureWeights of its own; they also rank the comparables when more than 5 are usable. Weights are relative. Absent: equal weights.

      • (string) –

        Name of a characteristic customers decide on, for example privacy or speed.

        • (float) –

          The relative weight of a characteristic in the customer decision.

  • costs (dict) –

    Cost inputs beyond each action’s unitCost: where the costs came from, any costs that could not be priced, fixed monthly cost and target margins. Absent: costs.source is inferred from actions[].unitCost, and the costs count as complete but unconfirmed (see costs.unknown).

    • source (string) –

      Where the cost figures came from. Required when any actions[].unitCost is 0. Absent: NONE when no action has unitCost, ESTIMATE when every action has it. ACTUALS, LIVE and ESTIMATE need unitCost on every action.

    • unknown (list) –

      Costs the developer knows exist but could not price, for example email provider. Omitted: the costs count as complete but unconfirmed, and the rendered text asks the developer to add any that are missing. Empty ( []): the developer confirmed there are no other costs. One or more items: the costs are incomplete, so costs.status in the response is INCOMPLETE and the confidence is LOW, and the rendered text names each item. With source NONE the items are only shown.

      • (string) –

        Name of a cost the developer could not price, for example “email provider”.

    • fixedMonthlyCost (float) –

      Fixed monthly cost to run the app in USD, including non-AWS fixed costs. Defaults to 0. It raises break-even (fixed cost per payer, with market.expectedUsers), so it can change the verdict and the price.

    • margins (list) –

      Margins the developer named, each in [0, 1). costs.coverPrices in the response shows the price that covers cost to serve at each margin above 0. The lowest margin also sets the lowest overage and credit-pack price per unit; order does not matter. With no value basis and no experiential estimate (see valueKind) the price is cost to serve at the lowest margin; omitted means a default margin of 0, labelled as a default, which prices at cost, the same as [0]. Omitted, or only 0: costs.coverPrices in the response is empty.

      • (float) –

        A target margin, as a fraction in [0, 1).

  • alternatives (dict) –

    What customers could use instead of the app: comparable apps and what they do without any product. Absent: no comparables ( comparablesOptIn OPTED_OUT) and no outside options.

    • comparablesOptIn (string) –

      The developer’s explicit answer to whether comparable apps’ public prices may be used. Required when comparables is sent. Absent otherwise: OPTED_OUT. Never inferred as OPTED_IN.

    • comparables (list) –

      Comparable apps, each read from its public pricing page, used only when comparablesOptIn is OPTED_IN. Each usable one becomes an alternative customers weigh against the app. At most 5 are used, best quality first; the rest, and any that cannot be used, are returned in alternatives.comparablesDropped with the reason. With OPTED_OUT they are still validated, but not used and not listed there. Absent: no comparables.

      • (dict) –

        A comparable app, read from its public pricing page. Give quality or features: one of them is required.

        • name (string) –

          Short name of the comparable app. Absent: the host of url, lowercased, without a leading www.; when two comparables get the same name, the later ones get (2), (3).

        • url (string) – [REQUIRED]

          The public pricing page the price was read from.

        • mechanism (string) – [REQUIRED]

          How the comparable charges.

        • price (dict) – [REQUIRED]

          Its price: per month for PAID_SUB, per use for PER_REQUEST, 0 for FREE_CAPPED and FREEMIUM, the one-time price for ONE_TIME. USD only: another currencyCode is rejected.

          • currencyCode (string) – [REQUIRED]

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) – [REQUIRED]

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

        • cap (float) –

          Monthly usage cap of the free tier, for FREE_CAPPED and FREEMIUM. A free tier without a cap is not used.

        • includedUnits (float) –

          For PAID_SUB: units of this app’s billable action the plan includes per month. With overageRate, a customer pays the plan price plus overage at their own usage; without it, the plan stops at this allowance. Absent: the plan price covers any usage.

        • overageRate (float) –

          For PAID_SUB with includedUnits: price per unit past the allowance, in USD. Absent: the plan stops at includedUnits (no overage).

        • quality (float) –

          How good it is compared with this app, where this app is 1.

        • features (dict) –

          Its scores on the characteristics in features, instead of quality. Required when quality is absent.

          • (string) –

            Name of a characteristic customers decide on, for example privacy or speed.

            • (float) –

              A score from 0 to 1 for a characteristic, measured against the best in class.

    • outsideOptions (list) –

      What customers do today without any product, such as doing the task by hand. Each one is an alternative customers weigh against the app, at its monthlyCost. These are not products, so they need no comparablesOptIn. Absent: none.

      • (dict) –

        Something customers do today without any product, such as doing the task by hand. Give quality or features: one of them is required.

        • name (string) – [REQUIRED]

          Short name, for example write it by hand.

        • monthlyCost (float) – [REQUIRED]

          What it costs a typical customer per month, in USD, for example the hours they spend on it times what an hour of their time is worth. Give the full cost: when an action’s value is above 0, it is weighed at the value share (see valueShare), the same as the hours it stands for.

        • quality (float) –

          How good it is compared with this app, where this app is 1.

        • features (dict) –

          Its scores on the characteristics in features, instead of quality.

          • (string) –

            Name of a characteristic customers decide on, for example privacy or speed.

            • (float) –

              A score from 0 to 1 for a characteristic, measured against the best in class.

  • market (dict) –

    Who the customers are, how many there are and, for a deployed app, how many pay today; and any checkout drop-off rates to use instead of the benchmarks. Absent: each member’s default (see MarketInputs).

    • expectedUsers (integer) –

      Market size: the number of potential customers, meaning people who have the problem the app solves and would consider paying for a tool to solve it. Paying users are this number times the modeled paying share. Do not count installs, sign-ups or people who would only try the app. It changes paying users, cost to serve and the verdict, and the price only when fixed cost per paying user decides it. Defaults to the service’s pre-launch benchmark.

    • measuredConversion (dict) –

      For a deployed app: how many of its users pay today. It takes effect when at least 30 users pay; with fewer, it is ignored with no error and the segment’s benchmark conversion is used. payingUsers must not exceed users. Used only without a value estimate (no action has minutesSaved, moneySaved or valuePerUse, and there is no experiential estimate, see valueKind): then paying users are the market size ( expectedUsers, or its benchmark) times payingUsers / users instead of times the segment’s benchmark conversion, which sets the fixed and Free-plan cost per paying user behind the cost-based price, the Free plan’s quota (or a trial instead), and the what-if results in planOptions.evaluatedPlanPrices. With a value estimate the modeled demand sets the paying share, and the measured conversion is shown in the rendered text but not used. Absent: the segment’s benchmark conversion.

      • payingUsers (integer) – [REQUIRED]

        Users who pay. At most users.

      • users (integer) – [REQUIRED]

        Users of the app.

    • customerTypes (list) –

      The types of customer who use the app, from one to three, each with its share of users and how its usage and value per use differ from an ordinary user. Absent: one ordinary type.

      • (dict) –

        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.

        • name (string) – [REQUIRED]

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

        • share (float) – [REQUIRED]

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

        • usageMultiplier (float) – [REQUIRED]

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

        • valuePerUseMultiplier (float) – [REQUIRED]

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

        • usageSpread (string) –

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

        • featureWeights (dict) –

          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.

          • (string) –

            Name of a characteristic customers decide on, for example privacy or speed.

            • (float) –

              The relative weight of a characteristic in the customer decision.

    • checkoutDropOff (dict) –

      The developer’s own checkout drop-off rates, one per pricing model, in place of the service’s benchmarks. A member that is absent keeps its benchmark; {} keeps all four. Used only with a value estimate; without one the price does not depend on them. Absent: every benchmark.

      • freePlan (float) –

        Share of buyers who start signing up for a Free plan but don’t finish. In [0, 1); 1 is rejected. Absent: the service’s benchmark for that pricing model.

      • flat (float) –

        Share of buyers who start a checkout for a flat plan but don’t finish. In [0, 1); 1 is rejected. Absent: the service’s benchmark for that pricing model.

      • perUse (float) –

        Share of buyers who start a checkout for per-use pricing but don’t finish. In [0, 1); 1 is rejected. Absent: the service’s benchmark for that pricing model.

      • tiered (float) –

        Share of buyers who start a checkout for a tiered plan but don’t finish. In [0, 1); 1 is rejected. Absent: the service’s benchmark for that pricing model.

  • planOptions (dict) –

    The pricing model and optional plans to consider, prices to evaluate, and the developer’s own price ( publishedPrice). Absent: each member’s default (see PlanOptions); the service chooses the pricing model and plans.

    • pricingModelPreference (string) –

      Pricing model to use instead of letting the service choose. planOptions.preferenceOutcome in the response says whether it was used. Absent: the service chooses ( preferenceOutcome NOT_REQUESTED). PER_USE_SPLIT needs two or more actions. PER_USE or PER_USE_SPLIT with freeTierInclusion, maxTierInclusion or annualPlanInclusion INCLUDE is rejected, and so is FLAT with freeTierInclusion INCLUDE.

    • freeTierInclusion (string) –

      Whether to include a Free plan. Absent: the segment’s default, which considers a Free plan for CONSUMER and PROSUMER and not for ENTERPRISE; with a pricingModelPreference, a Free plan is considered only for TIERED. INCLUDE with no pricingModelPreference limits the choice to TIERED; INCLUDE with a PER_USE, PER_USE_SPLIT or FLAT preference is rejected. The response’s planOptions.freeTier gives the outcome.

    • maxTierInclusion (string) –

      Whether to include a Max plan for heavy users. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when this is INCLUDE. Only with a value estimate: when no action has a value basis ( minutesSaved, moneySaved or valuePerUse) and there is no experiential estimate (see valueKind), the price is cost-based and this is ignored, with no error: the response has no Max plan and no planOptions.maxTier outcome. A Max plan goes with a TIERED or FLAT model, never PER_USE or PER_USE_SPLIT: INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected, and a per-use model the service chooses has no Max plan. Absent, for CONSUMER and PROSUMER: a TIERED recommendation includes it unless it would clearly lower the modeled profit or almost no paying customer would move up to it; a FLAT one includes it only when it improves the recommendation. Absent, for ENTERPRISE: no Max plan. A TIERED Max is unlimited ( includedQuantity 1,000,000,000 with NO_OVERAGE_THROTTLE) unless its buyers’ usage would cost too much of the Max price; then it has an allowance and overage. A FLAT Max always has an allowance.

    • annualPlanInclusion (string) –

      Whether to add an annual plan ( Annual). Absent: it is added when a subscription (FLAT or TIERED) is recommended, without changing the pricing model, unless every action is used less than once a month on average ( typicalMonthlyUsage below 1). INCLUDE adds it at any usage and, when the request sends no pricingModelPreference, also limits the choice to subscriptions; INCLUDE with a PER_USE or PER_USE_SPLIT preference is rejected. EXCLUDE leaves it out.

    • creditPackInclusion (string) –

      Whether to add one-time credit packs alongside the plans, the response’s creditPacks. Absent: EXCLUDE. INCLUDE is allowed with every pricing model, per-use included.

    • planPrices (list) –

      Prices to evaluate instead of the recommended ones, one per plan. Each is evaluated against the same modeled demand and returned in planOptions.evaluatedPlanPrices, with the recommended plans and credit packs rebuilt at that price; the recommendation itself does not change. A pro price is evaluated with the Max plan as recommended; when that Max would sit too close to the pro price, Max is re-priced or left out, as the recommendation does when it moves Pro, and the rendered text says which. A max price in the same request does not change this, so a pro item is the same as for that pro price alone. A max price must be above Pro’s price, and is evaluated with this request’s pro price if it has one. Absent: none, and planOptions.evaluatedPlanPrices is empty.

      • (dict) –

        A price to evaluate for one recommended plan, or for one action’s rate on the pay-as-you-go plan.

        • planCode (string) – [REQUIRED]

          Plan code as returned in plans, for example pro. Each plan code appears once.

        • actionName (string) –

          With pay_as_you_go only: the action this rate is for, one of actions[].name; the other actions keep their recommended rates. Absent on pay_as_you_go: one rate for every charged action, accepted only when pricingModel is PER_USE.

        • price (dict) – [REQUIRED]

          Price per billing cycle, or per use for pay_as_you_go (at least 0.01). A whole number of cents. USD only: another currencyCode is rejected.

          • currencyCode (string) – [REQUIRED]

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) – [REQUIRED]

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

    • publishedPrice (dict) –

      Your current or intended monthly price, in USD (another currencyCode is rejected). Shown for comparison, except when no action has a value basis and no comparables are used: then it is the recommended price, raised to cost to serve at the lowest margin in costs.margins (0, which is cost, when margins are omitted) when it is below that. Absent: no price is shown for comparison, and the price comes from the value estimate, comparables or cost.

      • currencyCode (string) – [REQUIRED]

        The currency of the price. USD only: another currencyCode is rejected.

      • amount (string) – [REQUIRED]

        The price amount.

  • context (dict) –

    Where the inputs came from, and notes on them. Changes no price, plan, verdict or confidence label: only how summary and details label and word the inputs. Absent: the rendered text uses default labels.

    • nonAwsCostsNote (string) –

      The developer’s note on non-AWS costs. Absent: the rendered text says none were found (and names any costs.unknown items).

    • valueBasis (string) –

      How the value figures ( minutesSaved, moneySaved or valuePerUse, and valueShare) were worked out, for example “drafting a reply by hand takes about 10 minutes”. Shown on the Value row of summary, and with the value inputs in details. Absent: not shown.

    • expectedUsersBasis (string) –

      Where market.expectedUsers came from. Absent: the rendered text labels it a rough guess from the app’s category.

    • usageSources (dict) –

      Whether each action’s typicalMonthlyUsage is an estimate or was measured on a deployed app (the last 30 days’ average per active user), by action name. Absent for an action: ESTIMATE.

      • (string) –

        A name in actions: letters, digits, underscores or hyphens, 1-64 characters.

        • (string) –

          Where an action’s typical usage came from.

    • customerTypeDescriptions (dict) –

      One line on who each customer type is, by market.customerTypes name. Absent for a type: only its name is shown.

      • (string) –

        Short name of a customer type, for example “solo devs”.

        • (string) –

          A free-text note on an input assumption.

Return type:

dict

Returns:

Response Syntax

{
    'pricingModel': 'FLAT'|'TIERED'|'PER_USE'|'PER_USE_SPLIT',
    'recommendedPrice': {
        'currencyCode': 'string',
        'amount': 'string'
    },
    'recommendedPriceRange': {
        'low': {
            'currencyCode': 'string',
            'amount': 'string'
        },
        'high': {
            'currencyCode': 'string',
            'amount': 'string'
        }
    },
    'unitPrices': [
        {
            'actionName': 'string',
            'price': {
                'currencyCode': 'string',
                'amount': 'string'
            }
        },
    ],
    'plans': [
        {
            'planCode': 'string',
            'name': 'string',
            'billingCycle': 'MONTHLY'|'ANNUAL'|'ONE_TIME',
            'price': {
                'currencyCode': 'string',
                'amount': 'string'
            },
            'includedQuotas': [
                {
                    'actionName': 'string',
                    'includedQuantity': 123,
                    'overagePolicy': 'NO_OVERAGE_THROTTLE'|'APPLY_FIXED_OVERAGE'|'APPLY_TIERED_OVERAGE',
                    'overagePrice': {
                        'currencyCode': 'string',
                        'amount': 'string'
                    }
                },
            ],
            'upgradePlanCodes': [
                'string',
            ],
            'downgradePlanCodes': [
                'string',
            ]
        },
    ],
    'creditPacks': [
        {
            'name': 'string',
            'actionName': 'string',
            'quantity': 123,
            'price': {
                'currencyCode': 'string',
                'amount': 'string'
            }
        },
    ],
    'verdict': 'HEALTHY'|'THIN_MARGIN'|'NOT_MONETIZABLE'|'COST_ONLY'|'COST_NOT_CHECKED',
    'confidence': 'HIGH'|'MEDIUM'|'LOW',
    'confidenceReason': 'string',
    'basis': 'string',
    'costs': {
        'status': 'COMPLETE'|'INCOMPLETE'|'NOT_CHECKED',
        'coverStatus': 'MODELED'|'COVERED'|'ARITHMETIC'|'NOT_CHECKED',
        'coverPrices': [
            {
                'margin': 123.0,
                'price': {
                    'currencyCode': 'string',
                    'amount': 'string'
                }
            },
        ],
        'breakEven': {
            'expected': {
                'costPerPayer': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'payers': 123.0
            },
            'low': {
                'costPerPayer': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'payers': 123.0
            },
            'high': {
                'costPerPayer': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'payers': 123.0
            }
        },
        'impliedMargin': 123.0
    },
    'alternatives': {
        'comparablesUsed': [
            'string',
        ],
        'comparablesDropped': [
            {
                'name': 'string',
                'price': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'reason': 'string'
            },
        ]
    },
    'planOptions': {
        'preferenceOutcome': 'HONORED'|'NOT_HONORED'|'NOT_REQUESTED',
        'freeTier': {
            'status': 'INCLUDED'|'TRIAL_SUGGESTED'|'NOT_INCLUDED',
            'statusSource': 'REQUESTED'|'SEGMENT_DEFAULT',
            'trialDays': 123,
            'freeUsers': 123.0,
            'conversion': 123.0,
            'monthlyCost': {
                'currencyCode': 'string',
                'amount': 'string'
            }
        },
        'maxTier': {
            'status': 'INCLUDED'|'INCLUDED_AS_REQUESTED'|'NOT_INCLUDED',
            'price': {
                'currencyCode': 'string',
                'amount': 'string'
            }
        },
        'evaluatedPlanPrices': [
            {
                'planCode': 'string',
                'price': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'monthlyProfit': 'string',
                'paidShare': 123.0,
                'verdict': 'HEALTHY'|'THIN_MARGIN'|'NOT_MONETIZABLE'|'COST_ONLY'|'COST_NOT_CHECKED',
                'plans': [
                    {
                        'planCode': 'string',
                        'name': 'string',
                        'billingCycle': 'MONTHLY'|'ANNUAL'|'ONE_TIME',
                        'price': {
                            'currencyCode': 'string',
                            'amount': 'string'
                        },
                        'includedQuotas': [
                            {
                                'actionName': 'string',
                                'includedQuantity': 123,
                                'overagePolicy': 'NO_OVERAGE_THROTTLE'|'APPLY_FIXED_OVERAGE'|'APPLY_TIERED_OVERAGE',
                                'overagePrice': {
                                    'currencyCode': 'string',
                                    'amount': 'string'
                                }
                            },
                        ],
                        'upgradePlanCodes': [
                            'string',
                        ],
                        'downgradePlanCodes': [
                            'string',
                        ]
                    },
                ],
                'creditPacks': [
                    {
                        'name': 'string',
                        'actionName': 'string',
                        'quantity': 123,
                        'price': {
                            'currencyCode': 'string',
                            'amount': 'string'
                        }
                    },
                ]
            },
        ]
    },
    'analysis': {
        'modelComparison': [
            {
                'pricingModel': 'FLAT'|'TIERED'|'PER_USE'|'PER_USE_SPLIT',
                'monthlyProfit': 'string',
                'monthlyRevenue': {
                    'currencyCode': 'string',
                    'amount': 'string'
                },
                'margin': 123.0,
                'paidShare': 123.0
            },
        ],
        'pricingModelCaveats': [
            'CLOSE_CALL'|'CHECKOUT_DROP_OFF',
        ],
        'frictionAlternative': 'FLAT'|'TIERED'|'PER_USE'|'PER_USE_SPLIT'
    },
    'recommendationVersion': 'string',
    'summary': 'string',
    'details': 'string'
}

Response Structure

  • (dict) –

    Output for GetPlanRecommendation. The recommendation is at the top level; costs, alternatives, planOptions and analysis hold what backs it. summary and details are always returned.

    • pricingModel (string) –

      The recommended pricing model. Equals the request’s planOptions.pricingModelPreference when planOptions.preferenceOutcome is HONORED.

    • recommendedPrice (dict) –

      Recommended monthly price of the main paid plan, for FLAT and TIERED. When an annual plan is recommended, it is in plans with billingCycle ANNUAL; this is still the monthly price.

      • currencyCode (string) –

        The ISO 4217 currency code (three uppercase letters, for example, “USD”).

      • amount (string) –

        An arbitrary-precision decimal represented as a string (for example, “9.99”).

    • recommendedPriceRange (dict) –

      Prices whose modeled profit is within a few percent of the best, when the profit curve is flat near its top. recommendedPrice is the middle of this range.

      • low (dict) –

        The lowest price in the range.

        • currencyCode (string) –

          The ISO 4217 currency code (three uppercase letters, for example, “USD”).

        • amount (string) –

          An arbitrary-precision decimal represented as a string (for example, “9.99”).

      • high (dict) –

        The highest price in the range.

        • currencyCode (string) –

          The ISO 4217 currency code (three uppercase letters, for example, “USD”).

        • amount (string) –

          An arbitrary-precision decimal represented as a string (for example, “9.99”).

    • unitPrices (list) –

      Price per use of each action, for PER_USE and PER_USE_SPLIT.

      • (dict) –

        Price per use of one action.

        • actionName (string) –

          An action’s key within the recommendation, used in plans, unitPrices and creditPacks: a name in the request’s actions. The developer maps it to the app’s metric.

        • price (dict) –

          The price per use.

          • currencyCode (string) –

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) –

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

    • plans (list) –

      The recommended plans. To create them, map each actionName to the app’s metric ID.

      • (dict) –

        One recommended plan.

        • planCode (string) –

          This plan’s key within the recommendation, for example pro. The request’s planOptions.planPrices, and this plan’s upgradePlanCodes and downgradePlanCodes, refer to plans by it. It is not a PlanId: CreatePlan assigns the PlanId when the plan is created.

        • name (string) –

          Plan name shown to buyers, for example Pro or Annual.

        • billingCycle (string) –

          How often the plan bills, as in CreatePlan’s definition.billingCycle.

        • price (dict) –

          Subscription price per billing cycle.

          • currencyCode (string) –

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) –

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

        • includedQuotas (list) –

          Units included per action, with what happens past them.

          • (dict) –

            Included units of one action in a plan.

            • actionName (string) –

              An action’s key within the recommendation, used in plans, unitPrices and creditPacks: a name in the request’s actions. The developer maps it to the app’s metric.

            • includedQuantity (integer) –

              The number of units included.

            • overagePolicy (string) –

              What happens to usage past the included units.

            • overagePrice (dict) –

              Price per unit past the included quantity. With APPLY_FIXED_OVERAGE only. Overage is not capped.

              • currencyCode (string) –

                The ISO 4217 currency code (three uppercase letters, for example, “USD”).

              • amount (string) –

                An arbitrary-precision decimal represented as a string (for example, “9.99”).

        • upgradePlanCodes (list) –

          Plan codes a subscriber can upgrade to, cheapest first.

          • (string) –

            A plan’s key within one recommendation, for example pro or team. URL-safe: letters, digits, hyphen, underscore; 1-64 characters.

        • downgradePlanCodes (list) –

          Plan codes a subscriber can downgrade to, cheapest first.

          • (string) –

            A plan’s key within one recommendation, for example pro or team. URL-safe: letters, digits, hyphen, underscore; 1-64 characters.

    • creditPacks (list) –

      One-time credit packs sold alongside the plans. Empty unless the request’s planOptions.creditPackInclusion was INCLUDE.

      • (dict) –

        A one-time pack of units of one action.

        • name (string) –

          Pack name shown to buyers.

        • actionName (string) –

          An action’s key within the recommendation, used in plans, unitPrices and creditPacks: a name in the request’s actions. The developer maps it to the app’s metric.

        • quantity (integer) –

          Units in the pack.

        • price (dict) –

          The pack price.

          • currencyCode (string) –

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) –

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

    • verdict (string) –

      Viability verdict.

    • confidence (string) –

      Confidence in the recommendation.

    • confidenceReason (string) –

      Why the confidence is what it is.

    • basis (string) –

      What the price is based on: modeled demand, or, without a value estimate, cost or comparables.

    • costs (dict) –

      How the recommended price relates to cost to serve.

      • status (string) –

        Whether the costs behind verdict and costs.breakEven are complete.

      • coverStatus (string) –

        Whether the recommended price covers cost to serve as modeled, was raised to cover it, or could not cover it at any price.

      • coverPrices (list) –

        The price that covers cost to serve at each margin above 0 in the request’s costs.margins. Reference only.

        • (dict) –

          The price that covers cost to serve at one margin.

          • margin (float) –

            The target margin this price covers.

          • price (dict) –

            Up to 4 decimal places.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

      • breakEven (dict) –

        Cost to serve one payer at the expected number of payers, at one tenth and at ten times.

        • expected (dict) –

          Cost to serve one payer at the expected number of payers.

          • costPerPayer (dict) –

            Monthly cost to serve one payer, including the payer’s share of fixed cost and free users. Up to 4 decimal places.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

          • payers (float) –

            Modeled number of payers, as a whole number.

        • low (dict) –

          Cost to serve one payer at one tenth the expected number of payers.

          • costPerPayer (dict) –

            Monthly cost to serve one payer, including the payer’s share of fixed cost and free users. Up to 4 decimal places.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

          • payers (float) –

            Modeled number of payers, as a whole number.

        • high (dict) –

          Cost to serve one payer at ten times the expected number of payers.

          • costPerPayer (dict) –

            Monthly cost to serve one payer, including the payer’s share of fixed cost and free users. Up to 4 decimal places.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

          • payers (float) –

            Modeled number of payers, as a whole number.

      • impliedMargin (float) –

        Share of revenue left after cost to serve at the recommended price and expected scale, to 2 decimal places.

    • alternatives (dict) –

      Which comparable apps were used and which were not.

      • comparablesUsed (list) –

        Names of the comparable apps whose prices were used.

        • (string) –

          Short name of a comparable app or outside option.

      • comparablesDropped (list) –

        Comparable apps that were not used, with the reason.

        • (dict) –

          A comparable app that was not used.

          • name (string) –

            Name of the comparable app.

          • price (dict) –

            The comparable app’s price.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

          • reason (string) –

            Why the comparable app was not used.

    • planOptions (dict) –

      What became of the request’s planOptions: the pricing-model preference, the Free and Max plans and the evaluated plan prices.

      • preferenceOutcome (string) –

        Whether the request’s planOptions.pricingModelPreference was used.

      • freeTier (dict) –

        The Free plan’s modeled outcome, or the free trial suggested instead of it.

        • status (string) –

          Whether a Free plan is included, or what is suggested instead.

        • statusSource (string) –

          Whether status follows the request’s planOptions.freeTierInclusion or the segment’s default.

        • trialDays (integer) –

          Length of the suggested free trial. TRIAL_SUGGESTED only.

        • freeUsers (float) –

          Modeled number of free users, as a whole number. INCLUDED, or NOT_INCLUDED with what a Free plan would cost.

        • conversion (float) –

          Modeled share of free users who convert to the paid plan. Not returned.

        • monthlyCost (dict) –

          Monthly cost of serving the free users: for INCLUDED, the Free plan’s cost; for TRIAL_SUGGESTED and NOT_INCLUDED, what a Free plan at the default quota would cost. Up to 4 decimal places.

          • currencyCode (string) –

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) –

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

      • maxTier (dict) –

        The Max plan’s modeled outcome. On the default menu for CONSUMER and PROSUMER; for ENTERPRISE only when the request’s planOptions.maxTierInclusion is INCLUDE.

        • status (string) –

          Whether a Max plan is included, and why.

        • price (dict) –

          The Max plan’s price.

          • currencyCode (string) –

            The ISO 4217 currency code (three uppercase letters, for example, “USD”).

          • amount (string) –

            An arbitrary-precision decimal represented as a string (for example, “9.99”).

      • evaluatedPlanPrices (list) –

        Modeled outcome of each price in the request’s planOptions.planPrices.

        • (dict) –

          Modeled monthly outcome of one price in the request’s planOptions.planPrices.

          • planCode (string) –

            The plan code this price was evaluated for.

          • price (dict) –

            The price evaluated: for pay_as_you_go with an actionName in the request, that action’s rate.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

          • monthlyProfit (string) –

            Modeled monthly profit at this price, which can be negative.

          • paidShare (float) –

            Modeled share of potential customers who pay, to 2 decimal places.

          • verdict (string) –

            Viability verdict at this price.

          • plans (list) –

            The recommended plans rebuilt at this price by the same rules, in the same form as the response’s plans: a pro price sets Pro’s overage rates and the annual plan, and a pay_as_you_go rate sets that action’s rate. At the recommended price, equal to plans.

            • (dict) –

              One recommended plan.

              • planCode (string) –

                This plan’s key within the recommendation, for example pro. The request’s planOptions.planPrices, and this plan’s upgradePlanCodes and downgradePlanCodes, refer to plans by it. It is not a PlanId: CreatePlan assigns the PlanId when the plan is created.

              • name (string) –

                Plan name shown to buyers, for example Pro or Annual.

              • billingCycle (string) –

                How often the plan bills, as in CreatePlan’s definition.billingCycle.

              • price (dict) –

                Subscription price per billing cycle.

                • currencyCode (string) –

                  The ISO 4217 currency code (three uppercase letters, for example, “USD”).

                • amount (string) –

                  An arbitrary-precision decimal represented as a string (for example, “9.99”).

              • includedQuotas (list) –

                Units included per action, with what happens past them.

                • (dict) –

                  Included units of one action in a plan.

                  • actionName (string) –

                    An action’s key within the recommendation, used in plans, unitPrices and creditPacks: a name in the request’s actions. The developer maps it to the app’s metric.

                  • includedQuantity (integer) –

                    The number of units included.

                  • overagePolicy (string) –

                    What happens to usage past the included units.

                  • overagePrice (dict) –

                    Price per unit past the included quantity. With APPLY_FIXED_OVERAGE only. Overage is not capped.

                    • currencyCode (string) –

                      The ISO 4217 currency code (three uppercase letters, for example, “USD”).

                    • amount (string) –

                      An arbitrary-precision decimal represented as a string (for example, “9.99”).

              • upgradePlanCodes (list) –

                Plan codes a subscriber can upgrade to, cheapest first.

                • (string) –

                  A plan’s key within one recommendation, for example pro or team. URL-safe: letters, digits, hyphen, underscore; 1-64 characters.

              • downgradePlanCodes (list) –

                Plan codes a subscriber can downgrade to, cheapest first.

                • (string) –

                  A plan’s key within one recommendation, for example pro or team. URL-safe: letters, digits, hyphen, underscore; 1-64 characters.

          • creditPacks (list) –

            The credit packs at this price, in the same form as the response’s creditPacks. At the recommended price, equal to creditPacks.

            • (dict) –

              A one-time pack of units of one action.

              • name (string) –

                Pack name shown to buyers.

              • actionName (string) –

                An action’s key within the recommendation, used in plans, unitPrices and creditPacks: a name in the request’s actions. The developer maps it to the app’s metric.

              • quantity (integer) –

                Units in the pack.

              • price (dict) –

                The pack price.

                • currencyCode (string) –

                  The ISO 4217 currency code (three uppercase letters, for example, “USD”).

                • amount (string) –

                  An arbitrary-precision decimal represented as a string (for example, “9.99”).

    • analysis (dict) –

      How the recommendation compares with other pricing models.

      • modelComparison (list) –

        Modeled outcome of each pricing model compared, under the same modeled demand.

        • (dict) –

          Modeled monthly outcome of one pricing model.

          • pricingModel (string) –

            The pricing model. With a value estimate a per-use model is listed as PER_USE, also when pricingModel is PER_USE_SPLIT; without one the only row is pricingModel.

          • monthlyProfit (string) –

            Modeled monthly profit, which can be negative.

          • monthlyRevenue (dict) –

            Modeled monthly revenue.

            • currencyCode (string) –

              The ISO 4217 currency code (three uppercase letters, for example, “USD”).

            • amount (string) –

              An arbitrary-precision decimal represented as a string (for example, “9.99”).

          • margin (float) –

            Profit as a share of revenue, to 2 decimal places. Absent when revenue is zero.

          • paidShare (float) –

            Modeled share of potential customers who pay, to 2 decimal places.

      • pricingModelCaveats (list) –

        Caveats on the comparison of pricing models by modeled profit. Empty when none applies or none was checked (see PricingModelCaveat).

        • (string) –

          A caveat on the comparison of pricing models by modeled profit, which is made only with a value estimate. The comparison picks the most profitable pricing model it may choose, or the simplest of those close to it. It may choose only FLAT or TIERED when planOptions.annualPlanInclusion is INCLUDE and the request sends neither planOptions.pricingModelPreference nor planOptions.freeTierInclusion INCLUDE. pricingModel need not be its pick, for example when the request sends one of those two.

      • frictionAlternative (string) –

        The pricing model the comparison would pick if every pricing model lost the same share of buyers at checkout. Present when pricingModelCaveats has CHECKOUT_DROP_OFF.

    • recommendationVersion (string) –

      Identifies the recommendation model and benchmark data behind this answer, for support. It changes when either changes.

    • summary (string) –

      The recommendation as text for the developer: the price, the plans, the reasons and the assumptions behind them.

    • details (string) –

      The same text as summary with a Details section on how the recommendation was worked out, for a developer who asks for details. Some figures appear only in summary and details.

Exceptions