Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Filtering groups in targeted query with Apps Script returns "forbidden"

$
0
0

When trying to run this reports query, Apps Script returns a "Forbidden" error.

var analyticsResponse = YouTubeAnalytics.Reports.query('channel=='+ channel,  startDate,  yesterdayFormatted,'views',  {    filters: 'group=='+ groupID  });

The same query works just fine through the query explorer web UI.

I tried groups created through the API as well as through the Youtube Analytics web UI.

The groups are all older than 48 hours.

The query runs fine with any other filter in multiple scripts with different metrics, sorts, etc.

Youtube Data and Reporting API permissions are set for the script and for the project.

Any idea what I might be missing?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>