Access to the YouTube Analytics API denied

I have several reports using the YouTube Analytics API in a Google spreadsheet. I haven’t changed anything recently.

These reports have a trigger that runs daily. 1/10. they stopped working.

Usage Report: http://i.imgur.com/8BRhBZd.png

I see at least four such questions. I post this in the hope of raising awareness in case there is a bigger problem at hand than some user error that I cannot ID.

The table shows the following errors:

[16-01-20 08: 55: 01: 935 PST] Execution failed: Forbidden (line 45, file "yt-sources") [total execution time 0.83 seconds]

Line 45:

var analyticsResponse = YouTubeAnalytics.Reports.query (

I have the same problem in two accounts (using different YouTube accounts).

I also recreated them and tried the sample report ( https://developers.google.com/youtube/analytics/v1/code_samples/apps-script#export_youtube_analytics_data_to_google_sheets ) that my reports are based on.

I can still retrieve data through the Google Analytics API.

+4
source share

Source: https://habr.com/ru/post/1625164/


All Articles