---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/analytics/content/mobile-api/stat/param.md
  - https://boost.yandex.com/doc/ru/analytics/content/mobile-api/stat/param.md
  - https://boost.yandex.com/doc/zh/analytics/content/mobile-api/stat/param.md
  - href: https://boost.yandex.com/doc/zh/analytics/content/mobile-api/stat/param.md
    type: text/markdown
    title: Markdown version
  - href: https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064

# Request parameters

报告 API 支持维度和指标的参数化。

参数化是为某些维度和指标设置参数的机制。

参数用尖括号定义 `<>` 例如：

  - 要按字符串用户属性对用户进行分组：`ym:u:customStringAttribute<profile_attribute_id>`。

  - 要获取客户事件参数值的总和：`ym:ce2:sumParamValues<param_value_path>`

现有的参数是：

#|
|| **参数** | **名称** | **描述** | **默认值** ||
|| `profile_attribute_id` | 配置文件属性 ID | ID of [个人属性](https://boost.yandex.com/doc/zh/analytics/content/data-collection/about-profiles.md) created in the app settings. | 否 ||
|| `url_parameter_key` | URL 参数 | URL参数名称。 | 否 ||
|| `货币` | Currency | 某些维度允许设置货币。 

可接受的值：`RUB`，`USD`，`EUR`，`YND`. 另请参见 [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217)。 | 否 ||
|| `app_currency` | App货币 | 例如，电子商务应用中的游戏币。 | 未提供需要翻译的 XLIFF 内容。 ||
|| `param_value_path` | JSON 路径 | JSON 中路径，节点由点分隔。 例如，`stat.time_in_app`. 它用于多个指标，以处理指定路径的节点值。 | 否 ||
|| `inapp_revenue_type` | In-App 收入类型 | 例如，`one_time_purchase`，`subscription_started`，`subscription_renewed`，`subscription_cancelled`. 您可以通过请求 `ym:r:inappRevenueType` 维度来获取应用的最新列表。 | 否 ||
|#

在表达式中设置参数有三种方式：

- 要为不同的表达式设置不同的参数值，请直接在表达式中指定参数。 例如，`ym:u:customStringAttribute1000`.

- 要为所有表达式设置一个参数，请将表达式参数以原始形式添加到请求中。 例如， `...&dimensions=ym:u:customStringAttribute<profile_attribute_id>&profile_attribute_id=1000&...`.
    
- 如果需要用不同的参数值对维度或指标进行参数化，并且这些参数可以接受任意字符串，请使用花括号。 例如，`ym:ce2:sumParamValues{'duration.max'}`.

您可以将这些方法组合在一个请求中。

<!-- source: zh/analytics/content/_includes/feedback-button-2.md -->
如果您没有找到所需答案，可以通过反馈表单提交您的问题。 请尽可能详细地描述问题。 如果可能，请附上截图。

<a href="../troubleshooting/feedback-new">
  <span class="button">联系支持</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">建议改进文档</span>
</a>
<!-- endsource: zh/analytics/content/_includes/feedback-button-2.md -->
