LocalizationSettings
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
报告的本地化设置,例如币种和语言。它会影响指标的计算方式。
JSON 表示法 |
{
"currencyCode": string,
"languageCode": string
} |
字段 |
currencyCode |
string
与收入相关的指标的货币代码,即 ISO 4217 中定义的由 3 个字母组成的代码。货币换算采用每日平均汇率。如果未指定,则默认为账号币种代码。
|
languageCode |
string
任何本地化文本(如某些维度值显示标签)所用的语言。IETF BCP47 中定义的语言标记。默认值为“en-US”。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[[["\u003cp\u003eLocalization settings influence how report metrics are calculated and displayed, encompassing currency and language preferences.\u003c/p\u003e\n"],["\u003cp\u003eThese settings are defined using JSON, with \u003ccode\u003ecurrencyCode\u003c/code\u003e specifying the currency for earning metrics and \u003ccode\u003elanguageCode\u003c/code\u003e determining the language for localized text.\u003c/p\u003e\n"],["\u003cp\u003eCurrency defaults to the account's currency if \u003ccode\u003ecurrencyCode\u003c/code\u003e is not specified, and the language defaults to 'en-US' if \u003ccode\u003elanguageCode\u003c/code\u003e is not provided.\u003c/p\u003e\n"]]],["The JSON representation defines localization settings for reports, including `currencyCode` and `languageCode`. `currencyCode`, a string using ISO 4217, determines the currency for earnings metrics and defaults to the account currency. `languageCode`, a string using IETF BCP47, dictates the language for localized text and defaults to 'en-US'. These settings impact metric calculations and the display of localized elements within reports.\n"],null,["# LocalizationSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nLocalization settings for reports, such as currency and language. It affects how metrics are calculated.\n\n| JSON representation |\n|------------------------------------------------------------|\n| ``` { \"currencyCode\": string, \"languageCode\": string } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `currencyCode` | `string` Currency code of the earning related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion. Defaults to the account currency code if unspecified. |\n| `languageCode` | `string` Language used for any localized text, such as some dimension value display labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if unspecified. |"]]