Search code examples
google-analyticsgoogle-analytics-apigoogle-remarketing-audience

CRMint - Rate limit for writes exceeded when patching using GAAudiencesUpdater


I am using the GAAudiencesUpdater to update audiences. The GAAudiencesUpdater seems to handle the creation of the audiences the first time fine, however, when the pipeline runs on subsequent days and uses the patch method the job fails every time. I am well within the Google Analytics API quota limits which is 50 writes per day for these types of jobs so I'm unclear as to why there is a rate limit for writes exceeded error.

The error I'm getting is: Unexpected error: HttpError: <HttpError 403 when requesting https://www.googleapis.com/analytics/v3/management/accounts/xxx/webproperties/UA-xxx-17/remarketingAudiences/xxx?alt=json returned "Quota Error: Rate limit for writes exceeded.">

Screenshot from the CRMint UI attached. enter image description here

Would appreciate any guidance on why this may be the case with the patch method specifically? Thanks!


Solution

  • There was a bug in the CRMint retry logic. Fortunately one of the contributors to the CRMint project resolved that bug and this isn't a concern any longer when updating audiences in CRMint.