To access the real time reporting api, i used the authSample.html file and which uses Oauth 2.0 client_id for authorization and api request.
But, Google real time reporting api said
"Your application must use OAuth 2.0 to authorize requests. No other authorization protocols are supported. If your application uses Google Sign-In, some aspects of authorization are handled for you."
What does it mean by Google Sign-In part ?
My application has already Google sign-in setup, so does that mean i must not use auth.html file plus Oauth2.0 credentials ?
I already googled but not finding any satisfactory answer.
I'm not sure what technology you are using but this is a great reference:
https://developers.google.com/api-client-library/
As is this:
https://github.com/google/google-api-javascript-client/blob/master/samples/authSample.html
It could be that you copied two or more samples into the same file and they are competing or that the person accessing the reports does not have permissions.
https://developers.google.com/analytics/devguides/reporting/realtime/v3/authorization
From the page above:
Samples: https://developers.google.com/analytics/devguides/reporting/realtime/v3/libraries
In the past when I've built these reports I've learned you can't rely on the samples to be working code as environments can and will vary and you so you will need to echo/print errors codes to see what the actual errors are. If you can post specific web/server errors, we can go from there to troubleshoot.
I hope all of this helps somewhat.