Hello i Would like to know somethink.
i follow the steps on the website https://developers.google.com/youtube/analytics/v1/sample-application#Enable_Authentication>
I had the same issue while using the youtube data api v3.
Just follow the steps :
function checkAuth() { gapi.auth.authorize({ client_id: OAUTH2_CLIENT_ID, scope: OAUTH2_SCOPES, immediate: false }, handleAuthResult); }
Once step 1 is followed u might get an error of unknow_client(thats the core issue actually)
2 So go to google developers console.For your project go to APIs and Auths>Consent screen> and provide the email address and product name.
3 Save it. Now try executing the code.