2014-12-05 94 views
2

我在我們的應用程序中使用Youtube Analytics API,我的客戶想知道分析報告何時更新?文件中提到,數據每24小時更新一次。因此,問題是所有報告會同時更新,還是會滾動更新,例如某些時間的某些報告和其他報告在不同的時間?Youtube Analytics報告更新時間戳

此外,我想使用最後更新的時間戳的報告。是否有可能獲取報告的最新更新時間戳?

感謝您的幫助!

回答

0

如果您使用YouTube API來獲取報告列出特定任務(check here

樣本結果會像:

``` 「報告」: { 「 id「:」392226189「, 」jobId「:」0e2184aa-eaec-4377-94d9-bo8ff5dcd020「, 」startTime「:」2016-08-19T07:00:00Z「, 」endTime「:」2016-08 -20T07:00:00Z「, 」createTime「:」2016-11-23T03:26:37.232661Z「, 」downloadUrl「:enter code herehttps://youtubereporting.googleapis.com/v1/media/CHANNEL/Vtt8H9XtcLB1G79QUCgdu0g/jobs/0e2184aa-eaec-4377-94d9-bo8ff5dcd020/reports/392226189?alt=media」 }]

``` 您可以使用createTime檢查wheather更新報告與否。如果報告更新,createTime將與您之前獲得的第一個createTime不同。

Reference Use the report ID to identify reports that you still need to download and import. However, if two new reports have the same startTime and endTime property values, only import the report with the newer createTime value.