I was following two guides from the Google App Script Reference
But I'm getting the error: GoogleJsonResponseException: API call to analytics.data.ga.get failed with error: User does not have sufficient permissions for this profile.
I have confirmed with my boss I am getting admin privileges. I have also checked on Google Analytics admin > property > property access management that I do have admin access.
I have two questions.
First one is, should I use the tracking ID or create a new property ID.
Second question is how am I able to get permission to run the codes.
I used tracking ID for the above codes, so UA-used_ID-1.
Thank you for the help.