I am working on sending notification from gmail to webserver through pub/sub,
I have gone through documentation in that they have mentioned to enable the scopes
https://cloud.google.com/pubsub/configure
I am specifying the following scopes through code
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/pubsub
Even though after specifying these scopes after calling watch() for the particular user its giving me
Google::Apis::ClientError: forbidden: Error sending test message to Cloud PubSub projects/project-id/topics/topic-name : User not authorized to perform this action.
So do I need to enable these scopes from google console ? If yes then can you please tell us the directions for doing it.