I need to get earnings details for user from YouTube
I followed below url to get earnings
https://developers.google.com/youtube/analytics/sample-requests#Content_Owner_Reports
i passed request like below
GET https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3D*******************&start-date=2014-05-01&end-date=2014-06-30&metrics=earnings&key={YOUR_API_KEY}
but the result is
{
"error": {
"errors": [
{
"domain": "global",
"reason": "unauthorized",
"message": "Insufficient permission to access this report."
}
],
"code": 401,
"message": "Insufficient permission to access this report."
}
}
My questions are:
- My request is right?
- How to get earnings in YouTube API?
contentOwner==OWNER_NAME
How to get OWNER_NAME for YouTube CMS?- What is YouTube CMS? Please help me