Closed 3dbrows closed 1 year ago
I'm wondering if the correct answer here is:
x-goog-quota-user
run_report(
{
# snip
},
metadata=[("x-goog-quota-user", "foobar")],
)
Hi @3dbrows, any chance you've figured this out?
I'm facing the same issue but with RunReportRequest
...
Hi @hapdotpy . I think my second comment is how to do it. The metadata argument seems to correspond to request headers.
I'm going to close this issue as resolved but please feel free to open a new issue with more information.
Environment details
google-analytics-data
version: 0.15.0The v1beta discovery document shows various parameters we can set, such as
quotaUser
. These are documented on the System Parameters page.But how do we set such parameters using the
BetaAnalyticsDataClient
? It doesn't appear to be possible to setquotaUser
on aBetaAnalyticsDataClient
, nor even by trying to use aBetaAnalyticsDataRestTransport
and hoping for some way to set URI query parameters. It also seems unlikely that a query interceptor can be of much help because that can only edit (for example) the bodyRunReportRequest
or similar.It appears that the Google API Client for Python supports
quotaUser
.Three questions:
Google API Client for Python
be used for theGoogle Analytics Data API v1
instead?quotaUser
considered deprecated for theGoogle Analytics Data API v1
?Python Client for Analytics Data API
?