You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于Google Business Performance API数据返回延迟超5天的技术咨询

关于Google Business Performance API数据延迟与准确性的问题

我在使用Google Business Performance API时遇到问题:该API返回的门店洞察数据延迟已超过5天,这是我此前咨询过的同类问题。目前发现延迟时长持续变化,需要确认读取数据的准确性。

相关代码如下:

private enum PerformanceMetrics {
    BUSINESS_IMPRESSIONS_DESKTOP_MAPS,
    BUSINESS_IMPRESSIONS_DESKTOP_SEARCH,
    BUSINESS_IMPRESSIONS_MOBILE_MAPS , 
    BUSINESS_IMPRESSIONS_MOBILE_SEARCH,
    BUSINESS_CONVERSATIONS,
    BUSINESS_DIRECTION_REQUESTS, 
    CALL_CLICKS,
    WEBSITE_CLICKS
}
public static void main(String[] args) throws Exception {

    business_profile_performance = initializeMyBusiness();

    locationsList.stream().forEach(u -> {

        for(PerformanceMetrics dailyMetric:PerformanceMetrics.values() ) {
            try {
                
                BusinessProfilePerformance.Locations.GetDailyMetricsTimeSeries metricReport =
                        business_profile_performance.locations().
                        getDailyMetricsTimeSeries(locationID).
                        setDailyMetric(dailyMetric.toString()).
                        setDailyRangeStartDateYear(Integer.valueOf("2022")).
                        setDailyRangeStartDateMonth(Integer.valueOf("12")).
                        setDailyRangeStartDateDay(Integer.valueOf("26")).

                        setDailyRangeEndDateYear(Integer.valueOf("2022")).
                        setDailyRangeEndDateMonth(Integer.valueOf("12")).
                        setDailyRangeEndDateDay(Integer.valueOf("27"));


                GetDailyMetricsTimeSeriesResponse response = metricReport.execute();
                if (!response.isEmpty()) {
                    System.out.println(" Response == " + response);
                }

            } catch (Exception e) {
                System.out.println(e);
            }

        }
    });

}

内容的提问来源于stack exchange,提问作者Shila Mosammami

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 15:07:29