关于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
相关产品推荐
相关产品推荐

