本地时区报告
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
当地时区报告功能可以按照 AdSense 账号的本地时区生成报告。从 AdSense Management API v2 开始,此功能默认处于启用状态。
设置
在大多数情况下,使用当地时区报告只需让 AdSense 用户配置其帐号的当地时区。这样,他们就可以选择与自己更相关的时区,并在 AdSense 网站和 AdSense Management API 报告中使用。
请求报告
默认情况下,AdSense 网站和 AdSense Management API 将使用帐号的本地时区来生成报告。对于 AdSense Management API,这一选择是通过 reportingTimeZone
参数(请参阅 ReportingTimeZone
)控制的,适用于临时和已保存的报告生成请求。
若要停用本地时区报告功能,应将 reportingTimeZone
参数设置为 GOOGLE_TIME_ZONE
;这会使用结算时区(始终为 America/Los_Angeles)生成报告。
请注意,如果用户从未为帐号设置本地时区,系统会将其帐号时区视为美国/洛杉矶(与结算时区相同)。
注意事项
更改时区
只要您更改帐号的时区,就会经历一段短暂的过渡期(最长为两天),在此期间产生的报表数据可能会不一致。此数据始终不一致,因此请尽可能注意您的应用中的这些过渡点。
特别相关的一个例子就是在首次为帐号设置本地时区时,这实际上就是将默认帐号时区切换为所选时区。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eAdSense reports are now generated in the user's local time zone by default, offering a more relevant view of data.\u003c/p\u003e\n"],["\u003cp\u003eUsers can configure their preferred time zone within their AdSense account settings for use across the website and API.\u003c/p\u003e\n"],["\u003cp\u003eReports can be generated using the billing time zone (America/Los_Angeles) by explicitly setting the \u003ccode\u003ereportingTimeZone\u003c/code\u003e parameter to \u003ccode\u003eGOOGLE_TIME_ZONE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eChanging the account's time zone may result in inconsistent reporting data for a brief period, which should be taken into consideration.\u003c/p\u003e\n"]]],["AdSense's local time zone reporting, enabled by default in API v2, allows reports to use the user's chosen time zone. Users must configure their account's local time zone. The `reportingTimeZone` parameter manages this in the API; setting it to `GOOGLE_TIME_ZONE` uses the billing time zone (America/Los_Angeles). If no user timezone is set the billing time zone is used. Time zone changes may cause up to two days of inconsistent reporting data.\n"],null,["# Local Time Zone Reporting\n\nLocal time zone reporting allows you to run reports in the AdSense account's local time zone. As of v2 of the AdSense Management API, this functionality is enabled by default.\n\nSetting things up\n-----------------\n\nIn most cases, all that is required to use local time zone reporting is for the AdSense user to [configure their account's local time zone](https://support.google.com/adsense/answer/9830725). This allows them to choose a time zone that is more relevant to them, and use it across the AdSense website and AdSense Management API reports.\n\nRequesting a report\n-------------------\n\nThe AdSense website and AdSense Management API will use the account's local time zone by default to generate reports. For the AdSense Management API, this choice is controlled via a `reportingTimeZone` parameter (see [`ReportingTimeZone`](/adsense/management/reference/rest/v2/ReportingTimeZone)) for both [ad hoc](/adsense/management/reference/rest/v2/accounts.reports) and [saved report](/adsense/management/reference/rest/v2/accounts.reports.saved) generation requests.\n\nTo disable local time zone reporting, the `reportingTimeZone` parameter should be set to `GOOGLE_TIME_ZONE`; this generates reports using the billing time zone (always America/Los_Angeles).\n\nNote that if the user has never [set the local time zone for the account](https://support.google.com/adsense/answer/9830725), their account time zone will be considered to be America/Los_Angeles, the same as the billing time zone.\n\nThings to watch out for\n-----------------------\n\n### Changing time zones\n\nWhenever the time zone for an account is changed, there will be a short transition period of up to two days where the reporting data will potentially be inconsistent. This data will always remain inconsistent, so be careful to note these transition points in your application, if possible.\n\nOne particularly relevant example of these transitions is when the local time zone for an account is first set: this will essentially be a switch from the default account time zone to the chosen time zone."]]