Client lacks sufficient authorization

Unfortunately, a recent thread suggested that there isn't a suitable API in Google Domains to allow you to add TXT records programmatically:

I know Google doesn't have a lot of user support for free services, but maybe there is somewhere that you could ask Google or a community of Google Domains users about this.