'Trying to fetch the "Google Analytics" config data like (Data Retention, Ecommerce Setting,etc) but face this error, pls help to extract data

googleapiclient.errors.HttpError: <HttpError 403 when requesting https://analytics.googleapis.com/analytics/v3/management/accounts/{account_id}/webproperties/{ga_code}?alt=json returned "Request had insufficient authentication scopes.". Details: "[{'message': 'Insufficient Permission', 'domain': 'global', 'reason': 'insufficientPermissions'}]">



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source