-2

When we are running youtube Analytics API(Youtube Analytics API Request Query) from website to get specific channel information, we are getting permission issue "You do not have permission to execute this method".

Thanks in advance.....

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449

1 Answers1

0

Reports: Query clearly states at the top:

All YouTube Analytics API requests must be authorized.
The Authorization guide explains how to use the OAuth 2.0 protocol to retrieve authorization tokens. YouTube Analytics API requests use the following authorization scopes:

https://www.googleapis.com/auth/yt-analytics.readonly View YouTube Analytics reports for your YouTube content. This scope provides access to user activity metrics, like view counts and rating counts.
https://www.googleapis.com/auth/yt-analytics-monetary.readonly View YouTube Analytics monetary reports for your YouTube content. This scope provides access to user activity metrics and to earnings and ad performance metrics.
https://www.googleapis.com/auth/youtube Manage your YouTube account. In the YouTube Analytics API, channel owners use this scope to manage YouTube Analytics groups and group items.
https://www.googleapis.com/auth/youtubepartner View and manage YouTube assets and associated content on YouTube. In the YouTube Analytics API, content owners use this scope to manage YouTube Analytics groups and group items.

To fix your problem authorize your requests as it says in the documentation.

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449
  • we are running this from the website. we have authorized the request but still we are getting the issue **"You do not have permission to execute this method"** – SHO Content Aug 25 '15 at 13:37