I dont really understand ops problem as I've been able to set monthly limits on expenditure. Seems trivial to setup.
https://docs.cloud.google.com/apis/docs/capping-api-usage
Or you can do it programmatically.
https://docs.cloud.google.com/billing/docs/how-to/disable-bi...