Google Analytics reports API - Insufficient Permission 403
Had the same problem, but now is solved.
Use View ID Not account ID, the 'View ID', can be found in the Admin->Profiles->Profile Settings tab
UPDATE
now, if you have more a account , you must go: Admin -> Select account -> under View-> click on View Settings
403 - Insufficient Permission only on accountSummaries call
It was just a scope issue: accounts
needs at least one among
https://www.googleapis.com/auth/analytics
https://www.googleapis.com/auth/analytics.edit
https://www.googleapis.com/auth/analytics.readonly
while accountSummaries
allows only the last two; it seems to be the only one that does not work with the analytics
scope, which is the one our client was requesting.
Google spreadsheet api Request had insufficient authentication scopes
Firstly delete the credentials files
~/.credentials/sheets.googleapis.com-nodejs-quickstart.json
(depending on your setting)Change the scope variable used for reading cells from Google Spreadsheets from
var SCOPES =
['https://www.googleapis.com/auth/spreadsheets.readonly'];
to
var SCOPES = ['https://www.googleapis.com/auth/spreadsheets'];
- After the execution of code, API will authenticate again and then the issue will be resolved.
Create Google Analytics Goal 403 Error Message: Your project does not have access to this feature
As you said you need to request access to the beta @ https://developers.google.com/analytics/devguides/config/mgmt/v3/account-management#limits .
According (403) Your project does not have access to this feature it can take up to multiple weeks (2 years ago it took 3 weeks) till you get a confirmation message. I assume you got this message?
After this I would minimize the possibilities of code and try it over https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/goals/insert#try-it
In the Management API, the write operations (e.g., create, update,
delete, and patch)—for Web Property, View (Profile), and Goal
resources—are in limited beta. To use them, request access to the
beta. If you try to use the following embedded APIs explorer to call
the write operations, you'll get an error message because it uses its
own project and credential. To set up the stand-alone APIs explorer to
work with your project and credential to call them, see Can I use my
own API key and/or OAuth 2.0 client ID with the Explorer?.
Related Topics
Why I Get Key Error Even Though Column Present in Pandas
How to Remove Nan from List Python/Numpy
How to Do a Conditional Count After Groupby on a Pandas Dataframe
Python: [Errno 10054] an Existing Connection Was Forcibly Closed by the Remote Host
How to Limit a Number to Be Within a Specified Range (Python)
Python: Fastest Way to Compare Arrays Elementwise
How to Count Occurrences of Key in List of Dictionaries
How to Run Two Python Scripts Simultaneously from a Master Script
Add N Empty Rows in a Dataframe
How to Use Variables in SQL Statement in Python
How to Map the Differences Between Two Strings
How to Get the Return Value from a Thread in Python
How to Select Last Row and Also How to Access Pyspark Dataframe by Index
How to Bold Text in Telepot Telegram Bot