I see we have AddProtectedRangeRequest, but I want to protect the whole sheet just like you can do through the UI. Any ideas? Thanks!
From the docs for ProtectedRange.range: The range that is being protected. The range may be fully unbounded, in which case this is considered a protected sheet.
So if you only set the range's sheetId and leave the start/end row/col empty (e.g unbounded), it will protect the whole sheet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With