GMail-Signatures Need to add Admin Directory API and Gmail API in Resources -> Advanced Google Services. And then enable them in the Google API console. Other things to enable are commented in the script.