The documentation hosted on googleapis.dev is out of date and the code examples throw errors. These are contained here and need to be updated.