@sh4sh After starting another airbyte run we ran this in the request body, we went to Google Analytics Data API (GA4)
In the Request Parameters for property we input (I am being very explicit just to help anyone else in the future trying to figure this out.) ,
properties/<NUMERIC PROPERTY ID>
Here is a working Request Body,
{
"returnPropertyQuota": true,
"dateRanges": [
{
"startDate": "2022-09-16",
"endDate": "2022-09-16",
"name": "blah"
}
],
"metrics": [
{
"name": "conversions",
"expression": "eventCount",
"invisible": false
}
]
}
We started hitting the endpoints every few seconds and did see the tokens decrease. After seeing airbytes logs pasted below we still had remaining credits.
2022-09-16 22:03:34 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):339 - Records read: 1000 (222 KB)
2022-09-16 22:03:45 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):339 - Records read: 2000 (574 KB)
2022-09-16 22:04:15 INFO i.a.w.g.DefaultReplicationWorker(lambda$getReplicationRunnable$6):339 - Records read: 3000 (938 KB)
2022-09-16 22:04:22 source > Backing off _send(...) for 5.0s (airbyte_cdk.sources.streams.http.exceptions.DefaultBackoffException: Request URL: https://analyticsdata.googleapis.com/v1beta/properties/297494425:runReport, Response Code: 429, Response Text: {
"error": {
"code": 429,
"message": "Exhausted property tokens for a project per hour. These quota tokens will return in under an hour. To learn more, see https://developers.google.com/analytics/devguides/reporting/data/v1/quotas",
"status": "RESOURCE_EXHAUSTED"
}
This is the API endpoint results after seeing the above error code in the log.
{
"metricHeaders": [
{
"name": "conversions",
"type": "TYPE_INTEGER"
}
],
"rows": [
{
"metricValues": [
{
"value": "5327"
}
]
}
],
"rowCount": 1,
"metadata": {
"currencyCode": "USD",
"timeZone": "America/New_York"
},
"propertyQuota": {
"tokensPerDay": {
"consumed": 3,
"remaining": 23697
},
"tokensPerHour": {
"consumed": 3,
"remaining": 3697
},
"concurrentRequests": {
"remaining": 10
},
"serverErrorsPerProjectPerHour": {
"remaining": 10
},
"potentiallyThresholdedRequestsPerHour": {
"remaining": 120
},
"tokensPerProjectPerHour": {
"consumed": 3,
"remaining": 1247
}
},
"kind": "analyticsData#runReport"
}
During the run about 1300ish credits were legitimately used, but there seems to be plenty remaining. We definitely are using the correct property id with airbyte and this quota request.