GA API-确认获取整日数据 [英] GA API - Confirmation to get full day of data

查看:75
本文介绍了GA API-确认获取整日数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GA API来获取交易数据,我想问一下,什么时候才是获取整天数据的最佳时间?我们的日程安排定于第二天的4:00 AM.从昨天获取数据是否足够?实际数据处理的延迟是什么?

Im using GA API to get transactions data and I want to ask, when is the best time to get full day of data? Our schedule is set on 4:00AM next day. Is it enough to get data from yesterday? What is the delay with real data process?

有没有办法检查数据是否正确,所以从一整天开始?最佳做法是什么?等待第二天下载昨天的所有数据?还是每小时下载一次数据?我们是否还应该以某种方式更新以前的数据,或者我可以确定从特定时间下载数据时,它总是正确和更新的?

Is there any way to check if data is correct, so from the full day? What is the best practice for that? Wait for the next day and download all data from yesterday? Or download data every hour? Should we also update previous data somehow or I can be sure that when I download data from specific hour it will be always correct and updated?

谢谢!

推荐答案

稳定处理的数据的API响应具有参数 isDataGolden .您可以在[API docs]中找到它.

API response for stable processed data has a parameter isDataGolden. You can find it in [API docs].1

指示对此请求的响应是否为金色.数据是黄金如果要求完全相同的请求将不会产生任何新结果在以后的某个时间点.

Indicates if response to this request is golden or not. Data is golden when the exact same request will not produce any new results if asked at a later point in time.

请注意1)数据变为金色可能要花费超过24小时的时间2)API不会告诉您 isDataGolden:false 并忽略此参数以获取未最终确定的数据.

Note that 1) it could take more than 24h for data to become golden 2) API do not tells you isDataGolden:false and ignores this parameter for not finalized data.

我想您可以重复请求昨天的数据,并在它们不是黄金"时每次都将其覆盖.

I suppose that you can make recurring request for your yesterday data and overwrite them each time as soon as they are not 'golden'

这篇关于GA API-确认获取整日数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆