Hello
Guide has incorrect sample code: Disable billing usage with notifications | Cloud Billing | Google Cloud Documentation
As mentioned in https://www.reddit.com/r/googlecloud/comments/1m2wk4h/function_to_disable_billing_at_budget_threshold/
Buffer.from(pubsubEvent.data, 'base64').toString()
should be replaced with:
Buffer.from(pubsubEvent.body.message.data, 'base64').toString()
This guide works some time ago, because it was working in my organization in the past. Now it doesn’t work.