POST /api/v1/client-api/metrics/ltv/

获取生命周期价值(LTV)数据

获取 LTV 数据,以评估客户在其参与周期内的长期收入潜力。

Request body

filtersobjectrequired
datearray of stringrequired

输入您希望获取数据图表数据的日期或时间段

compare_datearray of string

输入用于对比的日期或时间段

storearray of string

按购买所在的应用商店进行筛选

countryarray of string

按购买发生地的两位字母国家代码进行筛选

store_product_idarray of string

应用商店中产品的唯一标识符

durationarray of string

指定订阅时长

attribution_sourcearray of string

归因的来源集成

attribution_statusarray of string

表示归因是自然流量还是非自然流量

attribution_channelarray of string

带来该交易的营销渠道

attribution_campaignarray of string

带来该交易的营销活动

attribution_adgrouparray of string

带来该交易的归因广告组

attribution_adsetarray of string

带来该交易的归因广告集

attribution_creativearray of string

广告或营销活动中用于衡量效果的特定视觉或文字素材

offer_categoryarray of string

指定您希望获取数据的优惠类别

offer_typearray of string

指定您希望获取数据的优惠类型

offer_idarray of string

指定您希望获取数据的具体优惠

period_unitstring

指定聚合分析数据的时间间隔

One of: "day", "week", "month", "quarter", "year"

period_typestring

按续订次数或天数分析数据

One of: "renewals", "days"

segmentationstring

设置市场细分的依据

formatstring

指定导出文件格式

One of: "json", "csv"

Responses

LTV 数据获取成功

Schema

包含不同收入类型生命周期价值(LTV)数据的响应

revenueobject

基于总收入计算的 LTV

dataarray of object

不同同期群的 LTV 数据点数组

titlestring

该 LTV 数据点的显示标题

typestring

LTV 数据类型('total' 表示聚合数据)

valuenumber

该同期群的 LTV 数值

valuesarray of object

基于时间段的 LTV 数值数组

cohort_sizeinteger

该同期群中的用户数量

descriptionstring

以 HTML 格式说明 LTV 计算方式的描述

valuenumber

整体 LTV 数值

unitstring

计量单位(通常为 'USD')

titlestring

该 LTV 数据图表的显示标题

proceedsobject

基于收益(扣除商店手续费后)计算的 LTV

dataarray of object

不同同期群的 LTV 数据点数组

titlestring

该 LTV 数据点的显示标题

typestring

LTV 数据类型('total' 表示聚合数据)

valuenumber

该同期群的 LTV 数值

valuesarray of object

基于时间段的 LTV 数值数组

cohort_sizeinteger

该同期群中的用户数量

descriptionstring

以 HTML 格式说明 LTV 计算方式的描述

valuenumber

整体 LTV 数值

unitstring

计量单位(通常为 'USD')

titlestring

该 LTV 数据图表的显示标题

net_revenueobject

基于净收入计算的 LTV

dataarray of object

不同同期群的 LTV 数据点数组

titlestring

该 LTV 数据点的显示标题

typestring

LTV 数据类型('total' 表示聚合数据)

valuenumber

该同期群的 LTV 数值

valuesarray of object

基于时间段的 LTV 数值数组

cohort_sizeinteger

该同期群中的用户数量

descriptionstring

以 HTML 格式说明 LTV 计算方式的描述

valuenumber

整体 LTV 数值

unitstring

计量单位(通常为 'USD')

titlestring

该 LTV 数据图表的显示标题

Example
{
  "revenue": {
    "data": [
      {
        "title": "Total",
        "type": "total",
        "value": 0,
        "values": [],
        "cohort_size": 0
      }
    ],
    "description": "<div>LTV (Lifetime Value) is calculated as revenue for the period / number of subscribers on start.\n It's an actual, not predicted LTV.\n <a target=\"_blank\" rel=\"noopener noreferrer\" href='https://adapty.io/docs/ltv'> Read more</a>.</div>",
    "value": 0,
    "unit": "USD",
    "title": "LTV"
  },
  "proceeds": {
    "data": [
      {
        "title": "Total",
        "type": "total",
        "value": 0,
        "values": [],
        "cohort_size": 0
      }
    ],
    "description": "<div>LTV (Lifetime Value) is calculated as revenue for the period / number of subscribers on start.\n It's an actual, not predicted LTV.\n <a target=\"_blank\" rel=\"noopener noreferrer\" href='https://adapty.io/docs/ltv'> Read more</a>.</div>",
    "value": 0,
    "unit": "USD",
    "title": "LTV"
  },
  "net_revenue": {
    "data": [
      {
        "title": "Total",
        "type": "total",
        "value": 0,
        "values": [],
        "cohort_size": 0
      }
    ],
    "description": "<div>LTV (Lifetime Value) is calculated as revenue for the period / number of subscribers on start.\n It's an actual, not predicted LTV.\n <a target=\"_blank\" rel=\"noopener noreferrer\" href='https://adapty.io/docs/ltv'> Read more</a>.</div>",
    "value": 0,
    "unit": "USD",
    "title": "LTV"
  }
}

错误请求

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger

未授权

Schema
errorsarray of object
sourcestring
errorsarray of string
error_codestring
status_codeinteger